You need to sign in to do that
Don't have an account?
MXG
Set createdDate for feed-elements via REST API
Hi Community,
I want to transfer notes to salesforce as Chatter Feeds.
I found this post https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_feed_element.htm to create feed-elements via rest api, but I have to set the createdDate property of a record.
In the "setup" I set the 'Enable "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" User Permissions' option and my API User Profile got the right to 'Set Audit Fields upon Record Creation'.
Can I set the createdDate via POST Request?
I hope someone can help me.
I want to transfer notes to salesforce as Chatter Feeds.
I found this post https://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_feed_element.htm to create feed-elements via rest api, but I have to set the createdDate property of a record.
In the "setup" I set the 'Enable "Set Audit Fields upon Record Creation" and "Update Records with Inactive Owners" User Permissions' option and my API User Profile got the right to 'Set Audit Fields upon Record Creation'.
Can I set the createdDate via POST Request?
I hope someone can help me.
Based on this link here (https://help.salesforce.com/articleView?id=How-to-specify-the-values-in-Created-By-Created-Date-Last-Modified-By-ID-Last-Modified-Date&language=en_US&type=1) you should be able to specifiy values for CreatedDate and LastModifiedDate only on record create and not on update. You should be able to do this using POST request too, just give it a try and see
Thank you
I tried it. I used the following POST Request:
But I get only an error:
when I put the createdDate into the messageSegments I get this error:
I hope someone have a solution for my problem :)