I have developed a List Workflow in Visual Studio 2013.
In this, I am trying to read the current item's Title
and create an item in another list in another site collection.
Please read the last part clearly. I have to create an item in a list in a different site collection. But, both the site collections have the same user with contribute permissions. Since I have to create a list item in another site collection, I have no option than to use REST API to create a list Item. But to create a list item using REST API, I need to post a request to http://{siteName}/_api/web/lists/getbytitle('listTitle')/items
URL and post the type
, Title
and other columns and X-RequestDisgest
attributes in the payload. I am not sure, how to get the X-RequestDigest in my workflow.
If I skip this digest, I get an unauthorized exception upon checking it in Fiddler. Can anyone please help?