Logic Apps Create HTML Table with multiple lines - azure-logic-apps

I have a working HTTP trigger logic app that sends an email with info provided in the HTTP Post body, the workflow is very simple as shown below.
The HTTP Post body contains a property called Table which contains an HTML formatted table when it's sent the email contains additional characters highlighted in the email screenshot below
A sample of the body content
{
"To": "email#domain.com",
"Subject": "emailSubject",
"Body": "some info",
"Table": [
"<table>",
"<colgroup><col/><col/><col/><col/><col/></colgroup>",
"<tr><th>Owner Name</th><th>Subscriptions</th><th>Application Names</th><th>Owned Resources Count</th><th>Total Resources Cost</th></tr>",
"<tr><td>Owner1</td><td>Sub1<BR>Sub2<BR>moehe-devtest</td><td>App1<BR>App2<BR>App3</td><td>count1</td><td>amount1</td></tr>",
"<tr><td>Owner2</td><td>Sub1<BR>Sub2<BR>Sub3<BR>Sub4<BR>Sub5</td><td>App1<BR>App2<BR>App3<BR>App4<BR>App5<BR>App6<BR>App7<BR>App8</td><td>Counr2</td><td>Amount2</td></tr>",
"</table>"
]
}
The Email Sample with the unwanted characters:
I tried to send the Table property in JSON format and use the Create HTML Table Action instead to create the HTML Table but although the unwanted characters disappeared the items in the cells are not displayed in multiple lines so I need help to either remove the unwanted characters from the original flow or to display the items in multiple lines with the Create HTML Table action.

Related

How to fix Zapier not showing all Dynamic Dropdown options that are presented in a JSON Array GET API Repsonse?

I'm building a Zapier app for a platform that has dynamic fields that are specific to the individual user.
My API returns this response using a GET request:
[
{
"title": "003 Best Selling Book",
"id": "d86cbdf41be958336f1221a2211c3f65",
"date": "03/25/2021"
},
{
"id": "b844eaa3da5c476ab7337e83775777e0",
"title": "002 Best Selling Book",
"date": "03/26/2021"
}
]
The response is received by Zapier successfully
Response received by Zapier
but it is only showing the first item in the JSON array.
Only one object in my array shown.
When I go to test my trigger, it only shows me the one object in my array and give me a MISSING VALUE! error.
Missing Value Error in Zapier
Does anyone know how to fix this?
I'm trying to setup a Dropdown Type that is Dynamic and uses a Trigger to get the JSON object that populates the trigger.
A screenshot of the settings for the my dropdown from the Form Editor on the Zapier Platform Input Designer
I tried looking for example code in the Zapier Github or elsewhere on Stackoverflow or the web that showed example JSON responses for Zapier Actions, Zapier Triggers and Zapier Dynamic Dropdowns but couldn't find any.
Per the docs, your returned JSON needs name and id properties.

How to Create and Format HTML table in Logic Apps

How can we create html table with lines in Logic apps? Following is the table i have created using 'Create HTML table' action.
enter image description here
Getting data in table which doesnt have lines. how can i format html to get the table structure with horizontal and vertical lines?
enter image description here
As "Create HTML table" action can not show horizontal and vertical lines, so we can add style when we send the table in email. Please refer to the screenshot below(set "Is HTML" field to "Yes"):
After running the logic app, I received an email shown as below:

Docusign Formatting and Salesforce integration issue

I am in a Salesforce environment and trying to send out a docusign document using Docusign and Conga. I am using a 30 day trial.
1.Using Conga and Docusign works very well together and the formatting is correct except that I need to have 2 radio buttons on the form. Is there a way to add anchor tags to my Word document and hide them(white text) like I do for the Docusign signature and date tags?
I tried following the documentation for creating the radio buttons in Docusign and tie them to a picklist field in Salesforce but I have yet been able to write back to Salesforce.
How do you control the text length for a Docusign template? I have fields that make up the address but the spacing is not dynamic so depending on the field value the text may run into each other. Is there a way to have the fields adjust based on field value length?
How do I show multiple related records? I have a case with multiple activities associated to it and I need to display them. In Conga I use a table and all of the records show. But if I create a docusign template it is only showing the first record.
If at all possible I would prefer to add the anchor tags to the existing document since the formatting is cleaner.
Michael
There is. You'll want to avoid applying anchor tags directly to a DocuSign template when working in the web console. The reason for this is that when you're sending from Salesforce with or without Salesforce anchor strings you're going to receive an error message indicating that there's no text associated with an anchor string.
You can accomplish this through Custom Fields inside of Salesforce.
Basically, you place your text in white where you want the tag to attach to your document. You'll want to set the anchor string in the format of \variable{r}\ on the tag, then in the underlying document you would replace {r} with the recipient number in the signing order.
IE: \variable_{r}\ becomes \variable_1\, when Salesforce picks this up it will tag the document automatically. For more information, see here: https://support.docusign.com/guides/dfs-user-guide-use-automatic-anchor-text-with-custom-tags-user.
In terms of writing back the value of a Radio Button, as I'm sure you've noticed this can be tricky. The values for the picklist in Salesforce need to match up exactly, then be written back by adding a new line in your Connect object. A step by step guide is available on the support site: https://support.docusign.com/articles/DocuSign-for-Salesforce-How-to-update-a-Salesforce-Field-with-a-DocuSign-Radio-Button-Value.
The Width of a text field is determined in one of a few ways:
1) You can supply a fixed size in the API call being used to generate them.
2) You can save the custom field inside of DocuSign as a Custom Field after setting the width to it.
3) Set the Fixed Size flag to false, then the text field should fill itself out when text is applied to it.
Would you mind being more specific in regards to the status record?

AngularJS detect any kind of change in data and send a single update request

Suppose we have the following data:
[
{
"id": "1",
"name": "John"
} ,
{
"id": "2",
"name": "Jane"
}
]
They are displayed in an editable table, which allows user to add/edit/delete rows using appropriate buttons.
The requirement is to replicate Powerbuilder's Datawindow functionality:
When the user is done editing data, he should be able to press a single "Update" button, which is supposed to detect which rows were changed , added, deleted and finally send the appropriate requests back to the server.
Especially for edits I need to know the fields that were changed.
Is there an angular way to track these changes so that when the user presses "Update" I can build the 3 required requests and send them back to the server:
a) Update xx rows
b) Delete xx rows (they can easily be tracked when user presses delete button)
c) Insert xx rows
I don't think AngularJS will do this for you automatically on a per object basis. You might be interested in something like http://www.breezejs.com/ which works with AngularJS. I've never used it, but I hear it does what you need.

Adding hyperlinks in sql server

I'm working on storing the body of emails in sql server as ntext. The email body which I'm storing has hyperlinks like "view my website". I want to represent this normal text as hypelink?
Any Ideas?
You can insert the text as a normal insert. You may want to consider using something like FCKEditor to allow your users to format the email properly unless your going to be able to control how the HTML is created. You will want to make sure your columns datatype and size are appropriate.
Not knowing your table schema here is a very basic example.
Insert into Emailtable
('emailHtml', 'emailText')
Values
('<HTML><Head></Head><Body>view my website</Body></HTML>', 'Text version of the email')
If your going to have spaces and special characters in your link you could HTML encode the link so when it stores it and retrieves it you know your getting the right values.
You can store the text as formatted HTML and when you sent it with your email client (not sure how you will be sending these) set the client to send the message as HTML formatted. Then it's just a matter of adding the tags to the NText.
the sql type named text is appropriated for html content(including hyperlinks).
In your page you shoud use HtmlString class to show htm content.

Resources