Answered by:
Format of CRMWRPCToken in custom attachments

Question
-
Hi,I have developed custom attachments in CRM 4.0 with update rollup 5. Now, we have updated to rollup 10 and the attachments was not working. When I debugged through the issue, I came to know that the url is appending CRMWRPCToken and timestamp to it.
So, I am modifying the code accordingly. When, I tried to catch the token, I found the following format..
CRMWRPCToken\x3du0dNzqOZEd\x252bbdQAnDiN7DxbdY9TBnmFSAsW0AohFdPp03uzW7ajZRuub09eTSW4V\x26CRMWRPCTokenTimeStamp\x3d634188550419247881But, when I looked at the url in the crm, it is having a different format like below
http://crmServer/Orgname/Activities/Attachment/download.aspx?AttachmentType=1001&AttachmentId={6C75BC08-1DB1-DF11-8B95-00270E237B0F}&CRMWRPCToken=u0dNzqOZEd%2bdQAnDiN7Dw3LuilfuRVi%2qLfbBg71vE24JJu7JWZxHQBtvskGP6n&CRMWRPCTokenTimeStamp=634187665454153181what is this format belongs to and how can I get that format?
-Thanks
PerfectionistTuesday, August 31, 2010 1:38 PM
Answers
-
This thread will probably get you closer to your goal: http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/2f46a3c4-1123-49dd-804e-2787ef367986
Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com- Marked as answer by Jim Glass Jr Tuesday, August 31, 2010 7:54 PM
Tuesday, August 31, 2010 7:03 PMModerator
All replies
-
It is just encoded. \x3d is = for example.
MSCRM Bing'd - http://bingsoft.wordpress.comTuesday, August 31, 2010 1:52 PMModerator -
Thanks for your prompt reply Clinton.
How can I decode it?
-Thanks
PerfectionistTuesday, August 31, 2010 2:10 PM -
After rollup 7 the way you work with attachments has been changed. So, see on CRM SDK 4.0.12 to get the updated information about it. Search for Download an Attachment an you'll get the new way to work with attachments.
Hope it helps you!
Tuesday, August 31, 2010 2:11 PM -
You can take a look on this thread about changes in rollup 7 on download.aspx:
Regards
- Proposed as answer by DavidBerryMVP, Moderator Tuesday, August 31, 2010 7:03 PM
Tuesday, August 31, 2010 2:23 PM -
This thread will probably get you closer to your goal: http://social.microsoft.com/Forums/en-US/crmdevelopment/thread/2f46a3c4-1123-49dd-804e-2787ef367986
Dave Berry - MVP Dynamics CRM - http:\\crmentropy.blogspot.com- Marked as answer by Jim Glass Jr Tuesday, August 31, 2010 7:54 PM
Tuesday, August 31, 2010 7:03 PMModerator