<?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>Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/discussions/f/general/24044/need-help-in-converting-base64-encode-string-to-pdf-in-an-api-exposed-from-appian-to-sap-as-input-parameter</link><description>Hi Appian Team, 
 We have a use case where Appian API integrated with SAP , and the SAP system will input base 64 encoded strings for pdf, we have to read the same from the input variables and convert the same to PDF. 
 Can anyone help us to implement</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93457?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 06:40:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:22b7824a-a858-41c9-bb45-0addb55a486d</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;HI Stefan ,&lt;/p&gt;
&lt;p&gt;attaching sample code from my POC.&lt;/p&gt;
&lt;p&gt;thanks please reply!&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  /*Check whether the request body contains a document*/
  local!success: not(isnull(http!request.body)),
  if(
    local!success,
    a!startProcess(
      processModel: cons!Base64ToPdfConversionPOC,
      processParameters: {
        /*A document*/
        Transcript: todocument(http!request.body),
        
      },
      /*If a document was uploaded, return a successful response*/
      onSuccess: a!httpResponse(
        statusCode: 200,
        headers: { },
        /*Print the document id, name, and extension of the uploaded document*/
        body: concat(
          &amp;quot;Upload Successful: &amp;quot;,
          document(http!request.body, &amp;quot;id&amp;quot;),
          &amp;quot; - &amp;quot;,
          document(http!request.body, &amp;quot;name&amp;quot;),
          &amp;quot;.&amp;quot;,
          document(http!request.body, &amp;quot;extension&amp;quot;)
        )
      )
    ),
    /*If no document was uploaded, return an error code*/
    a!httpResponse(
      statusCode: 400,
      headers: { },
      body: &amp;quot;400 Document Not Provided&amp;quot;
    )
  )
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93456?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 06:38:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:def11b05-4749-43a7-bfbd-1b6df116ab1a</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="json"&gt;&amp;quot;PF_request&amp;quot;: {
    &amp;quot;first_name&amp;quot;: &amp;quot;John&amp;quot;,
    &amp;quot;last_name&amp;quot;: &amp;quot;Dow&amp;quot;,
    &amp;quot;photo&amp;quot;: &amp;quot;iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEUAAACnej3aAAAAAXRSTlMAQObYZgAAAApJREFUCNdjYAAAAAIAAeIhvDMAAAAASUVORK5CYII=&amp;quot;
}&lt;/pre&gt;Hi Attached sample input string&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93451?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2022 05:58:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c12f3490-0dce-458b-b73f-5c26bc889b86</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;HI Stefan,&lt;/p&gt;
&lt;p&gt;I have tried what mentioned in the link given above, I really need help in completing this ,I tried a POC it is accepting only binary format document not &amp;quot;application/json&amp;quot;.&lt;/p&gt;
&lt;p&gt;Can you help me with this scenario like accepting base 64 encoded string in &amp;quot;application/json&amp;quot; format and converting it into original doc format and saving in Appian.&lt;/p&gt;
&lt;p&gt;the document will be send in an integration with SAP where Appian API is exposed and they are consuming our API.&lt;/p&gt;
&lt;p&gt;If you are not finding a solution can Appian support help me with this scenario??This is really important requirement for our current integration with SAP!&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93064?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:50:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96164017-db6b-4715-aac1-9d2272f59521</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;I will also try the same and let you know the end results.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93063?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:48:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a1f81064-8539-432e-a594-94f7914486bb</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Not sure. I would give it a try.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93062?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:47:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c0a42878-a844-46e0-bb97-7b2d8094c787</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;Hi Stefan ,&lt;/p&gt;
&lt;p&gt;SAP will provide the input in base 64 format and can we use the same scenario as mentioned in the above link/documentation?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93061?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:34:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f0a7b47-9aaa-4618-90c4-cddab405fa4b</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Sorry. And what about this?&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/22.1/passing-a-web-api-document-into-a-process-model.html"&gt;docs.appian.com/.../passing-a-web-api-document-into-a-process-model.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93060?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:26:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58516aaf-7e57-4495-aff5-1316e14e6e5c</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;Hi Vinay kumar is it deprecated that smart service in 20.4 version??&lt;/p&gt;
&lt;p&gt;Can anyone from Appian answer me?&lt;/p&gt;
&lt;p&gt;Since we are not able to find that smart service in a process model?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93059?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:26:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd0a8cc6-eb8e-4e0b-87ef-11f3e54cb4ee</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;Hi Vinay kumar is it deprecated that smart service in 20.4 version??&lt;/p&gt;
&lt;p&gt;Can anyone from Appian answer me?&lt;/p&gt;
&lt;p&gt;Since we are not able to find that smart service in a process model?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93058?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 11:16:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:08e62123-9c30-4234-88d7-d49b0a53cc1a</guid><dc:creator>vinaykumar</dc:creator><description>&lt;p&gt;Hello Sunu Sam,&lt;/p&gt;
&lt;p&gt;If you are specific to doing this in a process model, try to use smart service - Base64 to Appian document conversion...&lt;/p&gt;
&lt;p&gt;Hope this helps &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93057?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 10:54:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6171c3be-54e3-4c0c-a277-6af34663d4c5</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;we have API exposed for integration system like SAP to consume our APi and we have a process model connected to it, we do not have connected system /integration as mentioned in above link or document shared by&amp;nbsp;&lt;a class="internal-link view-user-profile" href="/members/vinaykumarp0002"&gt;Vinay_kumar_Putchala&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Our scenario is totally different , we need to implement the base 64 decoding to pdf in a process model.&lt;/p&gt;
&lt;p&gt;if you have examples of same please share it with me? even documentation is fine&lt;/p&gt;
&lt;p&gt;-thanks in advance for your reply.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93056?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 10:34:10 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b5feacb1-5677-48f7-9156-1873e66d77db</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;This is exactly what  is talking about. Is there a reason this does not work for you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93055?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 10:29:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4fb03543-93a2-426c-a849-a59d762fd0c8</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;Hi Vinay_Kumar,&lt;/p&gt;
&lt;p&gt;I have to bring this conversation in process model only as i am exposing the API from Appian.&lt;/p&gt;
&lt;p&gt;Thanks please answer ,if anyone knows how to do?&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93040?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 05:46:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a4f1506-88e0-4bb6-baaa-22f85e366aa0</guid><dc:creator>vinaykumar</dc:creator><description>&lt;p&gt;Hello &lt;a href="/members/sunus0001"&gt;sunus0001&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;integration object allows you to receive Base64 documents and store them in Appian&amp;#39;s file system:&amp;nbsp;&lt;/span&gt;&lt;a href="https://docs.appian.com/suite/help/21.3/Integration_Object.html#receiving-base64-inline-with-json"&gt;https://docs.appian.com/suite/help/21.3/Integration_Object.html#receiving-base64-inline-with-json&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hope this helps !!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Need help in converting Base64 encode string to PDF in an API exposed from APPIAN to SAP as input parameter</title><link>https://community.appian.com/thread/93038?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 03:43:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a585f210-730b-4429-b066-fdc7ec068aac</guid><dc:creator>sunus0001</dc:creator><description>&lt;p&gt;HI Appian team,&lt;/p&gt;
&lt;p&gt;if anyone can help us for this requirement it would be of great help, we are waiting for response from this forum to implement this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Sunu Sam&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>