You need to sign in to do that
Don't have an account?
AichaSF
Post Webservice
Hello,
have a Salesforce webservice Post to an external environment. I need to send a list of fields:
request.setBody('{"AccountId" : +AvisQm.AccountId ,"Actions_men_es__c" : +AvisQm.Actions_men_es__c,"Annulation_Commande__c": +AvisQm.Annulation_Commande__c, "Cause__c" : +AvisQm.Cause__c ,"ContactId": +AvisQm.ContactId ,"Description" : +AvisQm.Description, "Email__c" : +AvisQm.Email__c,"Montant_de_l_avoir__c": +AvisQm.Montant_de_l_avoir__c, "Montant_de_la_refacturation__c" }');
On the other side, I do not receive anything.
Can you help me.
Thank you
have a Salesforce webservice Post to an external environment. I need to send a list of fields:
request.setBody('{"AccountId" : +AvisQm.AccountId ,"Actions_men_es__c" : +AvisQm.Actions_men_es__c,"Annulation_Commande__c": +AvisQm.Annulation_Commande__c, "Cause__c" : +AvisQm.Cause__c ,"ContactId": +AvisQm.ContactId ,"Description" : +AvisQm.Description, "Email__c" : +AvisQm.Email__c,"Montant_de_l_avoir__c": +AvisQm.Montant_de_l_avoir__c, "Montant_de_la_refacturation__c" }');
On the other side, I do not receive anything.
Can you help me.
Thank you
Hello,
Thank you for your reply.
Indeed the answer is 'Accepted'.
The record is created in the other environment except that the values are not mapped. We receive:
{
"AccountId": ++AvisQm.AccountId,
"Actions_men_es__c": +AvisQm.Actions_men_es__c,
"Annulation_Commande__c": +AvisQm.Annulation_Commande__c,
"Cause__c": +AvisQm.Cause__c,
"ContactId": +AvisQm.ContactId,
"Description": +AvisQm.Description,
"Email__c": +AvisQm.Email__c,
"Montant_de_l_avoir__c": +AvisQm.Montant_de_l_avoir__c,
"Montant_de_la_refacturation__c": +AvisQm.Montant_de_la_refacturation__c,
"Motif_R_clamation__c": +AvisQm.Motif_R_clamation__c,
"Motif_de_la_demande__c": +AvisQm.Motif_de_la_demande__c,
"N_suivi_retour__c": +AvisQm.N_suivi_retour__c,
"No_d_avoir__c": +AvisQm.No_d_avoir__c,
"No_de_RMA__c": +AvisQm.No_de_RMA__c,
"No_de_l_Avis_QM__c": +AvisQm.No_de_l_Avis_QM__c,
"No_de_la_refacturation__c": +AvisQm.No_de_la_refacturation__c,
"Num_ro_de_la_Livraison__c": +AvisQm.Num_ro_de_la_Livraison__c,
"Origin": +AvisQm.Origin,
"OwnerId": +AvisQm.OwnerId,
"Priority": +AvisQm.Priority,
"Status": +AvisQm.Status,
"Type_R_clamation__c": +AvisQm.Type_R_clamation__c,
"Type_m_contentement__c": +AvisQm.Type_m_contentement__c
}