Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

Setting Business Data Field using Client Object Model.

$
0
0

Hi All,

I am trying to set external data field value while uploading a document to SharePoint 2013. I am not able to save a validated value of the external/business data type field.

I am not able to get encoded instance Id, most articles explaining this to get from following method. 

EntityInstanceIdEncoder.EncodeEntityInstanceId(new object[]{<Relatedfield>});

However, when I see Microsoft.BusinessData.Infrastructure.EntityInstanceIdEncoder.EncodeEntityInstanceId it requires two parameters a ClientRuntimeContext and an object[].

I am not sure if am doing it right or not but following code always returns null no matter what I provide.

EntityInstanceIdEncoder.EncodeEntityInstanceId(runtimeContext, obj).Value;

I have tried to provide runtimecontext of item, web, and even main context object. For object[] we are supposed to give related field name I guess. So far I am not able to get any value out of this method.

I am able to retrieve all values from an external content type but not able to set external/business data field values using client object model.

Any help would be greatly appreciated.

Thanks

Mani


MS


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>