Personalized Community is here!
Quickly customize your community to find the content you seek.
Have questions on moving to the cloud? Visit the Dynamics 365 Migration Community today! Microsoft’s extensive network of Dynamics AX and Dynamics CRM experts can help.
2022 Release Wave 1 PlanDynamics 365 release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.
2022 release wave 1 plan
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Community | FastTrack Program | Finance and Operations TechTalks | Customer Engagement TechTalks | Upcoming TechTalks | All TechTalks
Hi everyone, i'm currently work on a custom workflow. In this custom workflow, i must connect external web service, send it a data and take new data back. I'm little bit confused. How can i call external web service in my workflow here is the my code;
GetCustomerInfoService.TransactionServiceClient client = null;
client = new GetCustomerInfoService.TransactionServiceClient();
GetCustomerInfoService.TransactionRequest request = new GetCustomerInfoService.TransactionRequest();
GetCustomerInfoService.AuthenticationData auth = new GetCustomerInfoService.AuthenticationData();
auth.UserName = "username";
auth.Password = "password";
request.AuthenticationData = auth;
Guid id = Guid.NewGuid(); //create random guid
request.RequestId = id.ToString();
request.OrderNumber = "W162299784";
GetCustomerInfoService.TransactionResponse response = client.GetTransactionByOrderNumber(request);
tmpContact = ContactHandler.GetContactViaCustomerCode(organizationServiceContext, response.Transaction.CustomerId.ToString());
if (tmpContact != null) // Null Check
tmpIncident.CustomerId = new EntityReference("Contact", tmpContact.ContactId.Value);
When i run the workflow i get this message;
"Could not find default endpoint element that references contract 'GetCustomerInfoService.ITransactionService' in the ServiceModel client configuration section. This might be because no configuration file was found for your application, or because no endpoint element matching this contract could be found in the client element."
If it is CRM online and sandbox mode, then you have to write code for binding within custom activity, there should't be any config file.
Also there are some limitation in sandbox mode web access.
If my response helps you, please mark it as "Verified"
now i get following message;
" There was no endpoint listening at .../TransactionService.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details. "
Well, finally i can finnish my code. Your links eas very usefull. Thanks.
Business Applications communities