Hi all i want to give API's to the third party people , where they have intergrated connected app through salesforce oath how to provide them API'S to push the data anyidea ?
Yes. They could get objct and corresponding fields API name by API. Or you could share these with them directly, then they only need to fouce on the logic part.
I want to Changes to existing REST API to support Lead creation from third party , that means Insert API ,
so third party asking me the API details for pushing the leads like authentication details , end point and sample request and response format. he is asking if possible please provide curl .. any idea can you help me on this ?
First, you need to create connect app for external integration system. Then share them Consumer Key and Consumer Secret. Second, you need to create an integration account for them. (same as a general user). Assign the corresponding permission. (e.g. CRUD permission on Lead object.) Then share the username, password and security token to them. Finally, based on these inforamtion they could call SFDC to get access token then insert record to Lead table.
Check this one : https://github.com/asagarwal/salesforce-rest-api-with-java/blob/master/salesforce_rest_api_2.java
I have done evrything they are able to access now , but problem is in the account object , account name they are not able fetch it, its showing error in the postman saying you do have access to field permission on your profile but i have given the permission
yes thanks now he can fetch the details but invoice PDF link he is not able to fetch that from Invoices , i have provided the parameter , you have any idea why is that ?
Hi Wen how to improve the test coverage bcz i did some changes in sandbox now i have to move this production but cove coverage 49% in sandbox and in production its 63% , please help me i want deploy the code today
You could share them SFDC REST API for details.
https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_rest_resources.htm
Thanks
I want to Changes to existing REST API to support Lead creation from third party , that means Insert API ,
so third party asking me the API details for pushing the leads like authentication details , end point and sample request and response format. he is asking if possible please provide curl .. any idea can you help me on this ?
First, you need to create connect app for external integration system. Then share them Consumer Key and Consumer Secret.
Second, you need to create an integration account for them. (same as a general user). Assign the corresponding permission. (e.g. CRUD permission on Lead object.) Then share the username, password and security token to them.
Finally, based on these inforamtion they could call SFDC to get access token then insert record to Lead table.
Check this one : https://github.com/asagarwal/salesforce-rest-api-with-java/blob/master/salesforce_rest_api_2.java
Thanks.
I have done evrything they are able to access now , but problem is in the account object , account name they are not able fetch it, its showing error in the postman saying you do have access to field permission on your profile but i have given the permission
Please also check field level security for account's fields. (read, write permission)
Thanks.
i check everything is fine , any idea on this
Just saw your message. Hope you have improved your test coverage. Try to cover all logic with test data.