Home » Microsoft Technologies

How can a workflow send data to an external web service / form

It appears there used to be an action called PostURL that was removed in CRM 4.0.  Is there a way I can send data via HTTP POST to an external system?  If not, I envision using a custom web application in an IFrame.



1 Answer Found


Answer 1

Hi, Chris.

You can always do custom workflow  action which will so what you need.



Hello, i have some web service in outsource server (not on the form server) and i need to send to this web service few text boxes fill by the user (text only - no files) i need to send the data + the number 1 + some guid string (that not changing - the same guid always) is anyone have an idea how im doing that? ( all the data need to be sending to asmx file.


Hello all,

First step, i'm trying to create an item in a list though web services. It's ok, there is no difficulties.

Second step, i add in my list a column of type external content type named 'RelatedPart'.

<Method ID="1" Cmd="New"><Field Name="ID">New</Field><Field Name="Title">New Item</Field><Field Name="Description">Item created by We service the 23/07/2010 09:49:19</Field></Method><Field Name="RelatedPart" Type="????">????</Field>

I'm not able to fill this fiedl using UpdateListItems method, i don't know what to put in place of ??? (i try a lot of possibility without success)

Thx in advance for your help.



Greetings -

I have a Form Web Part wherby the user enters a number

That number is sent to a subsequent Data View WebPart that uses the number to pull data from another source via a Web Service.

This all works fine. BUT

I'd also like for that number entered into the Form Web Part to be set as a Variable to be used until a new number is entered into the Form Web Part when the variable will be changed accordingly.

I need the newly set variable to be later used for filtering out data in other lists and views.

I also need the variable to automatically set a field in any newly created list item.

Gurus, please help.

I was learning Creation of Workflow service by referencing lab 5 from VS2010TrainingKit.
I added a ReceiveAndSendReply activity on a sequence, configured it, and hosted it as a Service. Then I coded a small Client application which called this service and everything worked fine.
After this I added a Send activity after the ReceiveAndSendReply activity and configured it according to the instructions in the Lab5 doc. I created and hosted a Clientservice(to receive data from workflow service) int he Client application. and configured the Send activity to call this clientService.
now the problem is the Send activity is not doing its intended work i.e. its not hitting the ClientService and I am not getting any exceptions also.
What could be the cause of this problem?
Also is there any way I can log the issue so that I could get the issue.
I verified and tested the clientService. Its up and running fine.


I have a Data Form Web Part, on a standard web part page, populated from a SharePoint List, that I want users to be able to search from. I have no problem in connecting a filter web part on the same page to the Data Form Web Part, but this only allows one filter at a time to be connected.

Is there a way of having multiple filters (Sharepoint List filters, text filteres, etc) linked to the DFWP?

Or - possibly - another way of allowing my users to search through the DFWP to bring back the required results?


I want to:
Expose a data service on the internet (this becomes my data server) Consume the data service from an ASP.net client that is on another domain in another geographic location
I have been trying to figure this out for days. I have unsuccessfully tried both Client Application Services and ASP.net Application Services. Is this possible? If so, how do I achieve this? If not I may have to abandon Data Services until the security matures.

Thanks in advance, Dan



I have a form2 in which I am passing data to Form using the Constructor method.

privatevoid OKbtn_Click(object sender, EventArgs e)
      Form1 frm = new Form1(txtRead.Text, pictureBox1.Image);

In Form1, I initialized another constructor,

public Form1(string strTextBox, Image PicFile)
    lb.Text = strTextBox;
    pictureBox1.Image = PicFile;
In the Form1, I have a TableLayout in which each cell has a picture box and a label. These cells are created at runtime when the user specifies the number of rows and columns. Clicking on any of these PictureBox opens Form2. A user sets some Text and an Image in Form2. Now on pressing the OK button, the data is sent to the Form1. I have to send the image to the PictureBox in the Cell and the Text to the Label in the cell. However, I am not aware of the name of the controls since they are created at runtime? What should I do in this case?


I have two lists. Both with an external data column, with the same BCS source (for instance: customer). A list item is created in List A with the external data column set to the customer Contoso. A workflow start which will create a list item in List B and set the external content type to the same value as the external data column of the item in List A.

The item in list B is created. When i open the display form of the item the value of the external data column is set to Contoso. So far so good. But when i edit the item, the external data column is empty!! ehhh?

Has anybody encountered this issue?


I created a workflow that should set an list item value(one column) from a lookup to External list.

This lookup works if I am using a normal list, but not the External list.

Is this possible in SP 2010 ent.? Where can I find if there are errors? View to an external list works fine, so I don't think it is a permission issue.



I created a workflow that should set an list item value(one column) from a lookup to External list.

This lookup works if I am using a normal list, but not the External list.

Is this possible in SP 2010 ent.? Where can I find if there are errors? View to an external list works fine, so I don't think it is a permission issue.




I need to use an existing asmx service from inside my service workflow and I am unable to call it.

This asmx service is hosted in a web application with iis set to windows authentication, anonymous is not allowed.
I need to send the authentication, only way seems too be using transport for basicHttpBindings.

Every time I try to call the service I get an error saying that there is nothing listening to the url of the service generated automatically by VS when I added the Service Reference ?

my web config

           <transport clientCredentialType="Windows" proxyCredentialType="None"
             realm="" />
           <messageclientCredentialType="UserName"algorithmSuite="Default"/></security></binding></basicHttpBinding><wsHttpBinding><bindingname="WindowsCreds"><securitymode="Message"><messageclientCredentialType="Windows"negotiateServiceCredential="true"establishSecurityContext="false"/></security></binding></wsHttpBinding></bindings><client><endpointaddress=""binding="basicHttpBinding"bindingConfiguration="UtilitiesSoap"contract="UtilitiesSoap"name="UtilitiesSoap"/></client><behaviors><serviceBehaviors><behavior><!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment --><serviceMetadatahttpGetEnabled="true"/><!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information --><serviceDebugincludeExceptionDetailInFaults="true"/></behavior></serviceBehaviors></behaviors><serviceHostingEnvironmentmultipleSiteBindingsEnabled="true"/></system.serviceModel><system.webServer><modulesrunAllManagedModulesForAllRequests="true"/></system.webServer></configuration>

and xaml

<WorkflowServicemc:Ignorable="sap"ConfigurationName="Service1"sap:VirtualizedContainerService.HintSize="1036,801"Name="Service1"mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces"xmlns="http://schemas.microsoft.com/netfx/2009/xaml/servicemodel"xmlns:a="clr-namespace:ADNWFService;assembly=ADNWFService"xmlns:ac="clr-namespace:ADNWFService.CrmDiscoveryService;assembly=ADNWFService"xmlns:aca="clr-namespace:ADNWFService.CrmDiscoveryService.Activities;assembly=ADNWFService"xmlns:au="clr-namespace:ADNWFService.UtilitiesService;assembly=ADNWFService"xmlns:aua="clr-namespace:ADNWFService.UtilitiesService.Activities;assembly=ADNWFService"xmlns:av="http://schemas.microsoft.com/winfx/2006/xaml/presentation"xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"xmlns:mv="clr-namespace:Microsoft.VisualBasic;assembly=System"xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/activities"xmlns:p1="http://schemas.microsoft.com/wf/2010/xaml/wfsecuritypack"xmlns:s="clr-namespace:System;assembly=mscorlib"xmlns:s1="clr-namespace:System;assembly=System"xmlns:s2="clr-namespace:System;assembly=System.Xml"xmlns:s3="clr-namespace:System;assembly=System.Core"xmlns:s4="clr-namespace:System;assembly=System.ServiceModel"xmlns:sa="clr-namespace:System.Activities;assembly=System.Activities"xmlns:sad="clr-namespace:System.Activities.Debugger;assembly=System.Activities"xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"xmlns:scg="clr-namespace:System.Collections.Generic;assembly=System"xmlns:scg1="clr-namespace:System.Collections.Generic;assembly=System.ServiceModel"xmlns:scg2="clr-namespace:System.Collections.Generic;assembly=System.Core"xmlns:scg3="clr-namespace:System.Collections.Generic;assembly=mscorlib"xmlns:sd="clr-namespace:System.Data;assembly=System.Data"xmlns:sd1="clr-namespace:System.Data;assembly=System.Data, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089"xmlns:sl="clr-namespace:System.Linq;assembly=System.Core"xmlns:ss="clr-namespace:System.ServiceModel;assembly=System.ServiceModel"xmlns:ss1="clr-namespace:System.ServiceModel;assembly=System.ServiceModel.Web"xmlns:ss2="clr-namespace:System.ServiceModel;assembly=System.ServiceModel.Activities"xmlns:ssa="clr-namespace:System.ServiceModel.Activities;assembly=System.ServiceModel.Activities"xmlns:ssx="clr-namespace:System.ServiceModel.XamlIntegration;assembly=System.ServiceModel"xmlns:st="clr-namespace:System.Text;assembly=mscorlib"xmlns:swsd="clr-namespace:System.Web.Services.Description;assembly=System.Web.Services"xmlns:sxs="clr-namespace:System.Xml.Serialization;assembly=System.Xml, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089"xmlns:sxs1="clr-namespace:System.Xml.Serialization;assembly=System.Xml"xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"><p:Flowchartsad:XamlDebuggerXmlReader.FileName="C:\CRM\CRM2010\ADNWFService\ADNWFService\CreateBulkEMails.xamlx"sap:VirtualizedContainerService.HintSize="1006,771"mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces"><p:Flowchart.Variables><p:Variablex:TypeArguments="CorrelationHandle"Name="bulkSendHandle"/><p:Variablex:TypeArguments="x:String"Name="strListId"/><p:Variablex:TypeArguments="a:EmailParams"Default="[New EmailParams()]"Name="emailParams"/><p:Variablex:TypeArguments="sd:DataTable"Name="cacheTable"/></p:Flowchart.Variables><sap:WorkflowViewStateService.ViewState><scg3:Dictionaryx:TypeArguments="x:String, x:Object"><x:Booleanx:Key="IsExpanded">False</x:Boolean><av:Pointx:Key="ShapeLocation">190,12.5</av:Point><av:Sizex:Key="ShapeSize">60,75</av:Size><av:PointCollectionx:Key="ConnectorLocation">220,87.5 220,117.5 220,164.5</av:PointCollection><x:Doublex:Key="Width">992</x:Double><x:Doublex:Key="Height">735.07999999999993</x:Double></scg3:Dictionary></sap:WorkflowViewStateService.ViewState><p:Flowchart.StartNode><x:Reference>__ReferenceID1</x:Reference></p:Flowchart.StartNode><p:FlowStepx:Name="__ReferenceID1"><sap:WorkflowViewStateService.ViewState><scg3:Dictionaryx:TypeArguments="x:String, x:Object"><av:Pointx:Key="ShapeLocation">120,164.5</av:Point><av:Sizex:Key="ShapeSize">200,51</av:Size></scg3:Dictionary></sap:WorkflowViewStateService.ViewState><p1:ImpersonatingReceiveScopeRequest="{x:Reference __ReferenceID0}"sap:VirtualizedContainerService.HintSize="303,675"><p:Sequencesap:VirtualizedContainerService.HintSize="277,475"><sap:WorkflowViewStateService.ViewState><scg3:Dictionaryx:TypeArguments="x:String, x:Object"><x:Booleanx:Key="IsExpanded">True</x:Boolean></scg3:Dictionary></sap:WorkflowViewStateService.ViewState><p:WriteLinesap:VirtualizedContainerService.HintSize="255,61"Text="[OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.ToString()]"/><aua:GetCacheTableEndpointConfigurationName="UtilitiesSoap"GetCacheTableResult="[cacheTable]"sap:VirtualizedContainerService.HintSize="255,22"mva:VisualBasic.Settings="Assembly references and imported namespaces serialized as XML namespaces"ShowDetails="True"handshake="Adn_Cache"/><p:Assignsap:VirtualizedContainerService.HintSize="255,58"><p:Assign.To><p:OutArgumentx:TypeArguments="x:String">[emailParams.strListId]</p:OutArgument></p:Assign.To><p:Assign.Value><p:InArgumentx:TypeArguments="x:String">[cacheTable.TableName + " count=" + cacheTable.Rows.Count.ToString()]</p:InArgument></p:Assign.Value></p:Assign><SendReplyDisplayName="SendReplyToNewBulkRequest"sap:VirtualizedContainerService.HintSize="255,90"><SendReply.Request><Receivex:Name="__ReferenceID0"CanCreateInstance="True"CorrelatesWith="[bulkSendHandle]"DisplayName="NewBulkRequest"sap:VirtualizedContainerService.HintSize="277,90"OperationName="GetListId"ServiceContractName="EmailParams"><Receive.CorrelationInitializers><RequestReplyCorrelationInitializerCorrelationHandle="[bulkSendHandle]"/></Receive.CorrelationInitializers><ReceiveMessageContentDeclaredMessageType="x:String"><p:OutArgumentx:TypeArguments="x:String">[strListId]</p:OutArgument></ReceiveMessageContent></Receive></SendReply.Request><SendMessageContentDeclaredMessageType="x:String"><p:InArgumentx:TypeArguments="x:String">["Fin"]</p:InArgument></SendMessageContent></SendReply></p:Sequence></p1:ImpersonatingReceiveScope></p:FlowStep></p:Flowchart></WorkflowService>

Thanks fo help


Hello!  I setup a sharepoint 2010 server at work to try and automate a few things, we are just doing some testing and I have found that something I thought would be fairly easy to accomplish, is not (big surprise!).  Our administration would like me to create a document/form that a user can fill out and then send it on to be approved by whomever needs to approve it.  The approvers will be different based on who is submitting the document/form.  I assumed this could be done by creating a form or document and having the user submit it to a workflow that has their designated approvers in it ( I would create several different workflows with different approvers in them).  Long story short, i haven't been able to figure out how to do this and I haven't had much luck researching it either.  I would assume this is something fairly easy to accomplish but I know next to nothing about sharepoint to begin with, which is probably the root cause of the problem :)  If anyone has any documentation/insight/suggestions/etc on how I can accomplish this task or why this can't be completed please fill me in!!  Thanks in advance. 

I have a Workflow service which is calling ado.net data service through code custom activity.
I want to perform two database operations ( credit and debit) in a single transaction. How to implement this transaction. the client is asp.net web application. I thought of flowing transactions from client to workflow services using this link http://msmvps.com/blogs/theproblemsolver/archive/2009/12/21/flowing-transaction-into-a-workflow-using-wf4.aspx  but my doubt it will it rollback ado.net data service operation also in case if transaction faiils.

Thanks in advance



Does anyone have a good idea on how to convert a web based InfoPath form into a PDF?

I've been looking into the MOSS Document Conversions, which could prove quite interesting. OOB, It allows to convert from InfoPath Form to Web Page (Web Publishing Page). Does a converter like "InfoPath Form to PDF" exist? Or perhaps just a "InfoPath to plain PDF" exist?

I've also been looking into the http://www.websupergoo.com/abcpdf-1.htm - ABCPDF component. It's quite clever, as it's able to take a URL as a parameter and return the web page as a searchable PDF (not just an bitmap image). However it fails converting any pages coming out of SharePoint / Form Services (even though it actually supports JavaScript).

Hit me back on any suggestions and ideas you have on this subject.

Kind regards.


I've followed this tutorial for creating and customising forms for external data (http://blogs.msdn.com/infopath/archive/2010/03/11/customize-an-external-list-form-in-infopath-2010.aspx).  The only difference being that my seconday data source is not an XML file (I've tried database connection and existing sharepoint lists both internal and external)

When running the design checker I get the message "Additional Data connections not supported" and my form won't publish.  Any ideas?


 I am using a from  view for data entry.  I need to verify that a check box is true or false after editing a record.

I have been accessing label text using the following|

CType(FormView1.FindControl("RespDeptLabel"), Label).Text


How can I access the state of  a checkbox in the form view to determine if it is true or false



I want to be able to take data entered in a certain text box in a web form and use it in another web form 

for example: upon clicking a button I want to redirect to another web form and that a text present in the first web form box textbox will automatically appear in a text box on the second web form

can someone get me started on how to do that?




I have a shopping cart that currently posts data to an external PHP page for further processing.  The user's cart data is stored in a hidden field, the action of the form is a PHP url, when the user clicks the checkout button Javascript fires the form data off using POST to a PHP page where it is parsed out and used to finish out the payment process. 

We ran into a problem with this because all of our cart data is being stored in a Session variable, which we cannot figure out how to clear via the Javascript.  When the user clicks checkout, the form data is sent, user is redirected to the PHP page, and we never see them again.  However, if they decide to come back to our page without closing their browser, their cart contents are still there because the Session variable was never cleared.

We cannot clear the Session variable before the user hits the checkout button because they may decide to go add more items before checking out, so clearing the session variable has to be done on checkout, but I can't find a way to do it in the Javascript.

So, my solution was to set another hidden field in the form called pageAction.  Then, when the user clicks the checkout button, the Javascript checkout() function is called, pageAction is set to "checkout", the page is reloaded and in the Page_Load of my C# there is an IF statement that looks for the status of pageAction and then performs the Session variable clearing perfectly.

However, now that I am not posting the form to the PHP URL as I was using Javascript, I cannot get the data sent over.  They have to have POST data and I cannot send it in a URL parameter such as Response.Redirect("PHPURL.PHP?=" + var);

Here is the Page_Load and what is working, but I need a way to post the value of my orderData to their PHP page in the exact manner that the form would do it by using POST and the URL as the action. 

I appreciate your expertise and will be sure to mark the answer that works!

protected void Page_Load(object sender, System.EventArgs e)
			cartHasItems.Visible = false;
			cartHasNoItems.Visible = false;
			if (Page.IsPostBack) 
				if (pageAction.Value.Equals("remove")) 
				if (pageAction.Value.Equals("update"))
				if (pageAction.Value.Equals("checkout"))
					// Loads the hidden form field with the order data
					// Stores the value for the hidden form field in a string ready to send off					
					string spod = formOrderData.Value;



I created an External Content Type (ECT) using SharePoint Designer 2010 with all CRUD operations, created an external list using this ECT, and everything looks good. I am able to view the external list in browser with all items as expected, am able to update any existing item, and it gets updated in SQL.

My requirement is:

1. I need a webpart page with 2 webparts:
           a. A "List View" webpart for this External list
           b. An "Edit Item" form for the same External list
           c. Item selected in the list view webpart should open in editable mode in the "Edit Item" form webpart
           d. Changes / Updates done in the item using the "Edit Item" form should get saved in SQL and get reflected on external list

Following is what I have done:

1. Created a webpart page
2. Added External list in first webpart
3. Opened the page in SharePoint Designer 2010. Inserted the external list's data source by clicking Insert -> Data Source -> <Name of External list>
4. Right pane displayed the data Source details. I selected all columns and clicked on "Insert Selected Fied as...Single Item Form"
5. Edit form appears as the second webpart.
6. Create a webpart connection between the 2 webparts by passing a row of data from List View to Edit form
7. Save and Close the page in SharePoint Designer

I browse to this page, list view gets displayed as expected, also the webpart connection works (i.e. when I select a row in List View, corresponding data gets loaded in the edit form).

My issue is- when I update any column and click on Save, application throws an error and data doesn't get saved. SharePoint logs describe the error as- “Error while executing web part: System.FormatException: Input string was not in a correct format.     at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)

What I have already tried:

1. I've thoroughly checked the data types in SQL, this error also occurs if I have 3-4 columns and all being of type varchar
2. I have also tried using Insert -> Edit Item Form -> Custom List Form -> select External list and check "Edit Form" from SharePoint Designer. This however poses another problem that after inserting edit form in this manner, the list view webpart doesn't load and continues to show the icon of processing.

Could anyone please help me here? We need this resolved urgently.

Best Regards,


I have an XML file in a forms library.

When I open the xml file using Notepad (ECB: Send To > Download a Copy), the values are there.
When I open the form in the client (ECB: Edit in Microsoft Office InfoPath), the values are there.
But when I open the form in IPFS (ECB: Edit in Browser), some values are missing.

This is underlying form data. It is not data from another source.
Rules should run in both browser and client, but just in case, I've verifed there are no rules touching this piece of data.
The form is IPFS compliant - it does render properly, just not the two data elements.

Anyone have any ideas?


<< Previous      Next >>

Microsoft   |   Windows   |   Visual Studio   |   Sharepoint   |   Azure