You need to sign in to do that
Don't have an account?
ToyClown
OwnerChangeOption Header Test
Hi,
Is there anyone can help me about this?
I tried the TransferOtherOpenedOpportunities ownerchangeoption . Please check my soap request below.
Please help me.
Is there anyone can help me about this?
I tried the TransferOtherOpenedOpportunities ownerchangeoption . Please check my soap request below.
<x:Envelope xmlns:x="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn1="urn:partner.soap.sforce.com" xmlns:urn="urn:sobject.partner.soap.sforce.com"> <!--This is used to test --> <x:Header> <urn1:SessionHeader> <urn1:sessionId>00D90000000Yhkx!AQ0AQIrzpvEQZFlIauDLgGIuWiXHpLYW2JNGU13QXUmSoqxVbSFWIpM4MGZ_81XOaANlL6zXJZ36WXKFmapxXeVmHidl7Dzc</urn1:sessionId> </urn1:SessionHeader> <urn1:OwnerChangeOptions> <urn1:options> <urn1:type>TransferOtherOpenedOpportunities</urn1:type> <urn1:execute>true</urn1:execute> </urn1:options> </urn1:OwnerChangeOptions> </x:Header> <x:Body> <urn1:update> <urn1:sObjects> <urn:type>Account</urn:type> <urn:Id>0019000001dKUjcAAG</urn:Id> <urn:OwnerId>00590000005B5wwAAC</urn:OwnerId> <!-- <urn:Id>00590000003VGc9AAG</urn:Id> <urn:OwnerId>0019000001dKUjcAAG</urn:OwnerId> --> </urn1:sObjects> </urn1:update> </x:Body> </x:Envelope>But just a invalid enum option error returned. I am not sure if this is a bug of saleforce.
<?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Client</faultcode> <faultstring>'TransferOtherOpenedOpportunities' is not a valid value for the enum 'OwnerChangeOptionType'</faultstring> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope>
Please help me.
Hi,
Value given for "OwnerChangeOptions" is not correct. It should be "TransferOtherOpenOpportunities" not "TransferOtherOpenedOpportunities" when you are updating the account. Error message is referring the sme thing.
To see valid values, you can look into followinf doc (https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_header_ownerchangeoptions.htm)
Please mark this as best answer if it helps you.
<faultstring>'TransferOtherOpenOpportunities' is not a valid value for the enum 'OwnerChangeOptionType'</faultstring>