Developer forum

Forum » PIM » Create dynamic feed link for user

Create dynamic feed link for user

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a Feed that is supposed to list some products together with User prices.

I want to make this Feed dependant on the user.

I see that I can select a user on the feed and that selection adds a parameter to the URL of the feed.

Is there any way I can generate that parameter from the User's dashboard? I suppose it is some encoding of the UserID but I don't know if there is any method available in the API that already does the job.

The prices will be retrieved from the Price Matrix.

Thank you,
Adrian


Replies

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Anybody?

Adrian

 
Nicolai Pedersen
Reply

I do not know. But I have asked a friend to give you the answer!

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you very much.


Adrian

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I believe I have found something: http://doc.dynamicweb-cms.com/api/html/329e5316-ff8f-e279-e869-fc2a475a57c1.htm

I will wait for the answer of your friend though :)

Thank you,
Adrian

 
Viktor Letavin Dynamicweb Employee
Viktor Letavin
Reply

Hi Adrian, you are totally right,

user encodes with  Dynamicweb.Security.SystemTools.Crypto.Encrypt(userId.ToString()), so you can use it.

BR, Viktor.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you for confirming, Victor

Adrian

 

You must be logged in to post in the forum