天天看點

如何通過Chrome直接建立SAP CRM Opportunity的文本

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:

如何通過Chrome直接建立SAP CRM Opportunity的文本

Click Send button, and the token is returned in HTTP response field x-csrf-token.

如何通過Chrome直接建立SAP CRM Opportunity的文本

If we maintain http payload via the following settings,

如何通過Chrome直接建立SAP CRM Opportunity的文本

we will get error response like below:

如何通過Chrome直接建立SAP CRM Opportunity的文本

the exception is raised due to an unsupported format:

如何通過Chrome直接建立SAP CRM Opportunity的文本

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:

如何通過Chrome直接建立SAP CRM Opportunity的文本

You should see the successful creation response:

如何通過Chrome直接建立SAP CRM Opportunity的文本

and the newly created note is visible in Fiori ui:

如何通過Chrome直接建立SAP CRM Opportunity的文本