Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 82002

C# call actions through webapi with parameters

$
0
0

Hi, I got some trouble with passing parameters through the web api to invoke the custom action. I am following this article (https://msdn.microsoft.com/en-us/library/mt742426.aspx) but still confused.  Basically, I need pass 3 parameters, where should I call the action in the uri ?

        public async Task TestActionAsync()
        {
            Console.WriteLine("--Action Test Starts Here--");
            Money amount = new Money() { Value = 300 };
            JObject exeAction = JObject.Parse(@"{ApplicationRef: '8B446743-C6C4-E711-A81C-005056B5FEFA','Amount:"+amount+"',Authcode:'0001'}");
            string actionUri =(how to define the URI)

            response = await SendAsJsonAsync(httpClient, HttpMethod.Post, actionUri, exeAction);




        }



Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images