Since we need to use HTTP post for note creation, it is necessary to get a CSRF token first. Use the following settings in Chrome extension Postman to fetch a CSRF token:
Click Send button, and the token is returned in HTTP response field x-csrf-token.
If we maintain http payload via the following settings,
we will get error response like below:
the exception is raised due to an unsupported format:
Then assemble a new HTTP post request with following settings, in http payload tab, choose option “raw” with format JSON, and paste the following json string containing Opportunity header guid and the note content you would like to create, click send button:
You should see the successful creation response:
and the newly created note is visible in Fiori ui:
要获取更多Jerry的原创文章,请关注公众号"汪子熙":