<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Expose and API from Appian</title><link>https://community.appian.com/discussions/f/integrations/21278/expose-and-api-from-appian</link><description>Hi All, 
 Can anyone help me on, is it possible we can expose an API from Appian Side, which can be accessed by SAP , 
 and when the Api is called from SAP side, a Process model will trigger with details.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83110?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 15:26:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df6736c7-c8d4-4dc5-815b-f71212a716ec</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Hi Stefan, it worked, I created a WebApi and trying to access the Process model in another application with all the privileges,&amp;nbsp;which dint work, so created both in same application and tried, it started working&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83089?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 07:00:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d72c9aba-836a-459f-9150-8cd70b039bef</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you try to start the process without passing any data? Does the constant point to the correct model? Is process model security OK? Is the PV&amp;nbsp;PF_Request configured as parameter?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83088?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 06:51:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4d447a8d-a5de-48e0-86d2-7f5da6449905</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;yes Acacio, I have tried with minimum fields, which is for test process, it worked , now am using the below JSON data, and the Process Variable is CDT, and am trying to map this HSON data to The PV.&lt;/p&gt;
&lt;p&gt;{&lt;br /&gt;&amp;nbsp; &amp;quot;requestId&amp;quot;: 29,&lt;br /&gt;&amp;nbsp; &amp;quot;destinationCountryID&amp;quot;: 234,&lt;br /&gt;&amp;nbsp; &amp;quot;frieghtCurrencyID&amp;quot;: 3,&lt;br /&gt;&amp;nbsp; &amp;quot;GBEID&amp;quot;: 2,&lt;br /&gt;&amp;nbsp; &amp;quot;LID&amp;quot;: 4,&lt;br /&gt;&amp;nbsp; &amp;quot;LOBID&amp;quot;: 113,&lt;br /&gt;&amp;nbsp; &amp;quot;leadSupplyLocationID&amp;quot;: null ,&lt;br /&gt;&amp;nbsp; &amp;quot;originCountryID&amp;quot;: 234,&lt;br /&gt;&amp;nbsp; &amp;quot;processID&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;reasonCodeID&amp;quot;: 6,&lt;br /&gt;&amp;nbsp; &amp;quot;regionID&amp;quot;: 2,&lt;br /&gt;&amp;nbsp; &amp;quot;rootCauseID&amp;quot;: 45,&lt;br /&gt;&amp;nbsp; &amp;quot;routingMethodID&amp;quot;: 52,&lt;br /&gt;&amp;nbsp; &amp;quot;shipmentDirectionID&amp;quot;: 1,&lt;br /&gt;&amp;nbsp; &amp;quot;shipmentWidth&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;shipperID&amp;quot;: 22,&lt;br /&gt;&amp;nbsp; &amp;quot;approvalLevels&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;approvalLevelsCompleted&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;correctiveActionReason&amp;quot;: &amp;quot;corrective action&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;destionationCustomerSupplier&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;destinationSiteID&amp;quot;: 338,&lt;br /&gt;&amp;nbsp; &amp;quot;destinationStateID&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;fGPartNumber&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;freightCost&amp;quot;: 435534,&lt;br /&gt;&amp;nbsp; &amp;quot;isFreightRecoverable&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;isWeightKnown&amp;quot;: false,&lt;br /&gt;&amp;nbsp; &amp;quot;originCustomerSupplier&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;originSiteID&amp;quot;: 304,&lt;br /&gt;&amp;nbsp; &amp;quot;originStateId&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;otherRoutingMethod&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;otherShipper&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;partNumber&amp;quot;: &amp;quot;ffdg&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;projectNumber&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;purchaseOrder&amp;quot;: &amp;quot;sergerg&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;requestDt&amp;quot;: &amp;quot;27-JUN-21&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;requestor&amp;quot;: &amp;quot;H349401&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;requestorComments&amp;quot;: &amp;quot;gdfgdfgd&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;requiredShipDate&amp;quot;: &amp;quot;02-JUL-21&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;revenueAtRisk&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;rootCauseReason&amp;quot;: &amp;quot;ffdgdfg&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;shipmentHeight&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;shipmentLength&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;shipmentUnits&amp;quot;: &amp;quot;KGS/CM&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;shipmentWeights&amp;quot;: 43553,&lt;br /&gt;&amp;nbsp; &amp;quot;shipperEmail&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;status&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;totalCost&amp;quot;: 3423424,&lt;br /&gt;&amp;nbsp; &amp;quot;usFreightCost&amp;quot;: 4264,&lt;br /&gt;&amp;nbsp; &amp;quot;wayBillNumber&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;originSite&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;destinationSite&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;createdDt&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;updateBy&amp;quot;: null,&lt;br /&gt;&amp;nbsp; &amp;quot;updateDt&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;completedOn&amp;quot;: &amp;quot;&amp;quot;,&lt;br /&gt;&amp;nbsp; &amp;quot;actualFreightCost&amp;quot;: 0,&lt;br /&gt;&amp;nbsp; &amp;quot;freightRiskPercent&amp;quot;: 0&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83087?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 06:49:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d6ef4986-0072-435a-9429-e8d715bfc2f5</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;in the WebAPI&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83085?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 06:34:12 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:18b6caa2-17de-4f1d-8b1b-70b7e2b56a42</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Vinneth,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Have you try to pass the body data through&amp;nbsp;the function a!fromJson in a separated rule just for testing? Perhaps your input is not valid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Other thing have you consider to use&amp;nbsp;Query Parameters? It seems that you are expecting lots of parameters however if you could give a try with a bear minimum number of parameter, just to see if you manage to do some progress in your issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Acacio B&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83082?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 06:28:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0a90ae78-658e-4567-99a2-7693b67ed8e1</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Where do you get the error message? In Appian in the API designer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83081?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 06:26:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9f359c4f-f8c2-4470-a93f-b498d8505bd9</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Hi Helzle,&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; There is no log with the ID V82KT3W (APNX-1-4533-000) in design_error.Csv&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; also I changed the mapping as below, as you suggested, still facing the same error.&lt;/p&gt;
&lt;p&gt;processParameters: {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PF_Request : a!fromJson(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; http!request.body&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83071?ContentTypeID=1</link><pubDate>Tue, 29 Jun 2021 05:23:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:11e9b559-3e64-4801-b6ba-8c6fb9fdb1de</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is a few things here. First, about the error message. Check this&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.2/Appian_Administration_Console.html#simplified-error-messages"&gt;https://docs.appian.com/suite/help/21.2/Appian_Administration_Console.html#simplified-error-messages&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Then, the foreach(). fv!item already is a single item from the list. There is no need for [fv!index|.&lt;/p&gt;
&lt;p&gt;Next, is the data structure in JSON any different than the CDT? Why recreate the data&amp;nbsp;at all? Appian would happily map the data into your process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/83062?ContentTypeID=1</link><pubDate>Mon, 28 Jun 2021 18:15:53 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b52bdb9b-db28-4b0e-9a6f-cca59058a388</guid><dc:creator>vineethk0001</dc:creator><description>&lt;p&gt;Hi Stefan/Acacio,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I have implemented the Mapping to CDT with API Body, but getting the below error, can you please help me out with the same,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &lt;span style="background-color:#ffefef;color:#de0037;float:none;font-family:&amp;#39;Appian Open Sans&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;"&gt;Not a valid Web API Response. Received: [Lcom.appiancorp.core.expr.reaction.ReactionTree;@2617a999.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffefef;color:#de0037;float:none;font-family:&amp;#39;Appian Open Sans&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;"&gt;Internal Server Error on REST API invocation.&lt;br /&gt;com.appiancorp.exceptions.LocalizedAppianRuntimeException$LocalizedAppianException: Contact your application administrator for help resolving this issue. Provide them with the following issue identifier: IV82KT3W (APNX-1-4533-000)&lt;pre class="ui-code" data-mode="text"&gt;
a!localVariables(
  local!jsondata : a!fromJson(
    http!request.body
  ),
  local!cdtdata : a!forEach(items: local!jsondata, expression:{&amp;#39;type!{urn:com:appian:types}PF_Request&amp;#39;(
    requestId: fv!item[fv!index].requestId, 
    destinationCountryID: fv!item[fv!index].destinationCountryID,
    frieghtCurrencyID: fv!item[fv!index].frieghtCurrencyID,
    GBEID: fv!item[fv!index].GBEID,
    LID: fv!item[fv!index].LID,
    LOBID: fv!item[fv!index].LOBID,
    leadSupplyLocationID: fv!item[fv!index].leadSupplyLocationID,
    originCountryID: fv!item[fv!index].originCountryID,
    processID: fv!item[fv!index].processID,
    reasonCodeID: fv!item[fv!index].reasonCodeID,
    regionID: fv!item[fv!index].regionID, 
    rootCauseID: fv!item[fv!index].rootCauseID,
    routingMethodID: fv!item[fv!index].routingMethodID,
    shipmentDirectionID: fv!item[fv!index].shipmentDirectionID,
    shipmentWidth: fv!item[fv!index].shipmentWidth,
    shipperID: fv!item[fv!index].shipperID,
    approvalLevels: fv!item[fv!index].approvalLevels,
    approvalLevelsCompleted: fv!item[fv!index].approvalLevelsCompleted,
    correctiveActionReason: fv!item[fv!index].correctiveActionReason,
    destionationCustomerSupplier: fv!item[fv!index].destionationCustomerSupplier,
    destinationSiteID: fv!item[fv!index].destinationSiteID, 
    fGPartNumber: fv!item[fv!index].fGPartNumber,
    freightCost: fv!item[fv!index].freightCost,
    isFreightRecoverable: fv!item[fv!index].isFreightRecoverable,
    isWeightKnown: fv!item[fv!index].isWeightKnown,
    originCustomerSupplier: fv!item[fv!index].originCustomerSupplier,
    originSiteID: fv!item[fv!index].originSiteID,
    originStateId: fv!item[fv!index].originStateId,
    otherRoutingMethod: fv!item[fv!index].otherRoutingMethod,
    otherShipper: fv!item[fv!index].otherShipper,  
    partNumber: fv!item[fv!index].partNumber, 
    projectNumber: fv!item[fv!index].projectNumber,
    purchaseOrder: fv!item[fv!index].purchaseOrder,
    requestDt: fv!item[fv!index].requestDt,
    requestor: fv!item[fv!index].requestor,
    requiredShipDate: fv!item[fv!index].requiredShipDate,
    revenueAtRisk: fv!item[fv!index].revenueAtRisk,
    rootCauseReason: fv!item[fv!index].rootCauseReason,
    ShipmentHeight: fv!item[fv!index].ShipmentHeight,
    ShipmentLength: fv!item[fv!index].ShipmentLength,
    ShipmentUnits: fv!item[fv!index].ShipmentUnits, 
    ShipmentWeight: fv!item[fv!index].ShipmentWeight,
    ShipperEmail: fv!item[fv!index].ShipperEmail,
    Status: fv!item[fv!index].Status,
    TotalCost: fv!item[fv!index].TotalCost,
    USFreightCost: fv!item[fv!index].USFreightCost,
    WaybillNumber: fv!item[fv!index].WaybillNumber,
    OriginSite: fv!item[fv!index].OriginSite,
    DestinationSite: fv!item[fv!index].DestinationSite,
    /*CompletedOn: fv!item[fv!index].CompletedOn,*/
    ActualFreightCost: fv!item[fv!index].ActualFreightCost,
    FreightRiskPercent: fv!item[fv!index].FreightRiskPercent,
    
  )
  
  }
  ),
  
  {
    
    a!startProcess(
      processModel: cons!Test_Email_WebAPI,
      processParameters: {
        PF_Request : local!cdtdata
      },
      onSuccess: a!httpResponse(
        statusCode: 200,
        headers: {
          a!httpHeader(name: &amp;quot;Content-Type&amp;quot;, value: &amp;quot;application/json&amp;quot;)
        },
        body: a!toJson(
          fv!processInfo
        )
      ),
      onError: a!httpResponse(
        statusCode: 500,
        headers: {
          a!httpHeader(name: &amp;quot;Content-Type&amp;quot;, value: &amp;quot;application/json&amp;quot;)
        },
        body: a!toJson(
          {
            error: &amp;quot;There was an error starting the process&amp;quot;
          }
        )
      )
    )
  }
  
)
&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffefef;color:#de0037;float:none;font-family:&amp;#39;Appian Open Sans&amp;#39;, sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:pre-wrap;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/82958?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 07:26:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:521a11dd-4b89-4b64-8d7f-122bd998239d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;In Appian, when you create a new web api object, this is one of the available templates. Takes about 5 clicks. Did you try&amp;nbsp;this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Expose and API from Appian</title><link>https://community.appian.com/thread/82957?ContentTypeID=1</link><pubDate>Fri, 25 Jun 2021 06:54:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8c10d3cd-bb4a-42a5-b4fe-0f227a1ef003</guid><dc:creator>Acacio Barrado</dc:creator><description>&lt;p&gt;Hi Vinneth,&lt;/p&gt;
&lt;p&gt;I ended up answering you in your other thread.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But yes, you can achieve what you are looking for using an Web API component.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please check the link below:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/21.2/Designing_Web_APIs.html"&gt;https://docs.appian.com/suite/help/21.2/Designing_Web_APIs.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Acacio B,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>