Web Services: Export Content from client orgs
Answered
Hi guys,
I am attempting to run the GETCONTENT command on a client org (not the default org) and I am being returned a null for the contentResources variable in the AdministrationServiceResponse object.
Does the GETCONTENT function work on client orgs or or could you direct me to an example running against a client org?
Thanks and Kind Regards,
Hi Simon,
Thanks for sending in the question. You can indeed run GETCONTENT against client orgs. I have a hunch you are probably missing 'setOrgRef()' from your web service call. Here is an example of GETCONTENT returning content used by a client org:
You would just need to change rsr.setOrgRef("123"); to match the org reference ID for your client org. Could you give this a shot and let us know if this works for you? Let me know if you run into troubles or if you have any follow-up questions etc.
Kind Regards,
Dustin
Hi Simon,
Thanks for sending in the question. You can indeed run GETCONTENT against client orgs. I have a hunch you are probably missing 'setOrgRef()' from your web service call. Here is an example of GETCONTENT returning content used by a client org:
You would just need to change rsr.setOrgRef("123"); to match the org reference ID for your client org. Could you give this a shot and let us know if this works for you? Let me know if you run into troubles or if you have any follow-up questions etc.
Kind Regards,
Dustin
Hi Simon,
Thanks for sending in the question. You can indeed run GETCONTENT against client orgs. I have a hunch you are probably missing 'setOrgRef()' from your web service call. Here is an example of GETCONTENT returning content used by a client org:
You would just need to change rsr.setOrgRef("123"); to match the org reference ID for your client org. Could you give this a shot and let us know if this works for you? Let me know if you run into troubles or if you have any follow-up questions etc.
Kind Regards,
Dustin
Hi Simon,
Thanks for sending in the question. You can indeed run GETCONTENT against client orgs. I have a hunch you are probably missing 'setOrgRef()' from your web service call. Here is an example of GETCONTENT returning content used by a client org:
You would just need to change rsr.setOrgRef("123"); to match the org reference ID for your client org. Could you give this a shot and let us know if this works for you? Let me know if you run into troubles or if you have any follow-up questions etc.
Kind Regards,
Dustin
Replies have been locked on this page!