External application are consuming Salesforce enterprise wsdl and planning to create a feeditem record associated to a (Parent as) custom object.
In our case, they are going to create the feeditem every time on the same custom object and we have an external id (unique) field on the custom object.
To implement this, they have to make 2 calls:
Query to get the parent id of the custom object record (based on the external id)
Then create the feeditem record with Parentid as the custom object record id
I believe this may not be possible, but still raising this question for any ideas or expert advice.
Is there a way create a feeditem record associated to a parent record (which is a custom object) all in one SOAP webservice call using enterprise wsdl.
Below is a sample XML: (This does not work as the relationship to custom object does not exist)
Secure_Communication__c - Is the custom object
<soapenv:Body> <urn:create> <urn:sObjects xsi:type="urn1:FeedItem"> <!--Zero or more repetitions:--> <!--You may enter ANY elements at this point--> <Body>TEST MESAGE FROM PORTAL2</Body> <ParentId>a0L550000014TAy</ParentId> </urn:sObjects> <urn1:Secure_Communication__r> <Legacy_Secure_Communication_ID__c>982918</Legacy_Secure_Communication_ID__c> </urn1:Secure_Communication__r> </urn:create> </soapenv:Body>