Friday, September 7, 2012

PerfectForms – Getting Link to API created Instace

Getting Link to API created Instance.


 

Here are the steps to get this accomplished.

  1. Get the API link for the form.
  2. Get the FormID from the API link. FormID is the one that you will see in the API url after forms/ until the first _ (underscore)
    http://app.perfectforms.com/api/forms/3yjHAlggAggA-gwM_API_Add_Instace.asmx?wsdl In this 3yjHAlggAggA-gwM is the FormID.
  3. First Login to the Application using API login method. On success you will be returned a token, please store that.
  4. Connect to the Forms API and do a ADD passing in the required fields data and the token that you received on the login success.
  5. On success from the Add, instance ID is returned. Store that and the token.
  6. <GetFormInstanceMetaData2Response xmlns="http://www.PerfectForms.com/API" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

      <GetFormInstanceMetaData2Result>0</GetFormInstanceMetaData2Result>

      <tokenOut>gAgC1BItJpQ0PJwa</tokenOut>

      <formInstanceName/>

      <formInstanceNumber>1</formInstanceNumber>

      <formInstanceGUID>50c59769d2f44701956b99cc183941</formInstanceGUID>

      <link>http://app.perfectforms.com/p.aspx?f=od8DhjAgAgAgpAQR</link>

      <stageId/>

      <stageName/>

      <majorVersion>1</majorVersion>

      <minorVersion>0</minorVersion>

    </GetFormInstanceMetaData2Response>


  7.  


     

    This will open the instance that you created.

No comments:

Post a Comment