Cross domain REST API CSOM using JavaScript

I have the following scenario:

1) Upon create/update of the list item in https://teams.comp.com/sites/grpSite/Lists/Products

2) I need to create the corresponding list imte in https://secureteams.comp.com/sites/grpSiteMain/Lists/Products.

I have contribute rights on both sites and able to create/update via UI. However, to achieve automation I need to use REST API on create/update form for #1, so that it updates automatically. I have tried using REST API but it is failing, I have tried with SP.RequestExecutor with token but I think that is for app only.

I need to do it for one site collection to other site collection without using the app. Please let me know how it can be done.

I have option of using SharePoint 2013 and JavaScript CSOM only.


  • Edited by Shalin Parmar 2 hours 46 minutes ago forgot to add version
March 24th, 2015 12:43am

Hi Shalin,

Hope the below links help you

https://social.technet.microsoft.com/Forums/sharepoint/en-US/2385f192-aa87-495a-9332-d4dcfac7481e/nonapp-rest-call-using-javascript-error-with-cross-domain-?forum=sharepointdevelopment

https://social.technet.microsoft.com/Forums/sharepoint/en-US/d086e5a5-4e20-43c4-a846-2f7b999868d1/sharepoint-cross-domain-request-using-javascript?forum=sharepointdevelopmentprevious

http://www.alaindeklerk.com/cross-domain-webservice-calls-in-sp2010-using-jsonp-part-1/

Free Windows Admin Tool Kit Click here and download it now
March 24th, 2015 1:07am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics