Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I create external list for display external items from my wcf service and add custom action on that list EditForm through ClientObjectModel with this url:

"/ProcessSomething?siteUrl={SiteUrl}&listUrl={ListUrlDir}&itemId={ItemId}"

And add it on edit form.

But when i click on created button i recieve in my service non item ID field(that was defined as entity identifier in sharepoint designer), but i recieve "BDC Identity" value for item. Are there ways to retrieve my original Id field by "BDC Identity" or something else?

share|improve this question

2 Answers 2

up vote 0 down vote accepted

I think it's a bad way. I decide to use Javascript object model.

share|improve this answer
string bdcIdentity = "__bg40003300";
int id = Convert.ToInt32((EntityInstanceIdEncoder.DecodeEntityInstanceId(bdcIdentity)[0]));
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.