Use HTTP request to create column with formatting schema in power automate - sharepoint

I am creating columns in SharePoint list with "Send An HTTP request". I am wondering if I can also send formatting column json schema as a part of request content body (or any other way from power automate).

Here's an example of how you can do it in the action you use to create the column, i tried it and it works. I recommend you to configure the JSON custom formatter directly in sharepoint list/library and then minify the code.

Related

Create table in sharepoint excel file using REST API?

I am trying to create a table given a range of cells in a Sharepoint Excel file.
For this purpose I'm consulting Microsoft Graph REST API documentation in this link
However, when I try to create the table, I see that the request for "Create table" is a bit weird as it does not specify the worksheet nor the range from which I want to create the table...
Any ideas how to do this? Thank you
According to the documentation the request body has property address where the range and optional sheet name is specified.
Endpoints:
POST /me/drive/items/{id}/workbook/tables/add
POST /me/drive/root:/{item-path}:/workbook/tables/add
POST /me/drive/items/{id}/workbook/worksheets/{id|name}/tables/add
POST /me/drive/root:/{item-path}:/workbook/worksheets/{id|name}/tables/add
Request body:
{
"address": "Sheet1!A1:D5",
"hasHeaders": true
}
The example you are referencing is really weird and probably wrong (endpoint POST https://graph.microsoft.com/v1.0/me/drive/items/{item-id}/workbook/tables/{table-id}/add is wrong. You don't know the table id before creation and the request body is also wrong).
Resources:
Create table

Can I tell NetSuite Advanced PDF/HTML to treat data item as HTML?

I’m new to NetSuite, just starting to try to develop an Advanced PDF/HTML template. I need to have a text data field contain HTML and have the report generate treat it as HTML.
The objective is that the data source that feeds NetSuite will generate HTML that varies based on the content of the data and other objects associated with it on another system, and to have the report engine render that HTML.
It doesn’t need to support terribly complex HTML basically just a table with columns/rows that may vary based on the data, including having rows that may contain another table.
Any pointers would be greatly appreciated.
Had an expert show me the solution. Here are the steps:
Add the custom field and make it type Rich Text
Develop an invoice template that looks like you want it to look, but put a placeholder string where you want the HTML to go (e.g. HTML_GOES_HERE)
Write a JS scriptlet that will pull the HTML from the record and replace the placeholder. Import it into NetSuite and deploy it
Add a custom action to the form where you view the invoice that will invoke the method in the JS scriptlet

Is it possible to pull HTML code into a Sharepoint workflow email?

I've been asked to set up an email communications for our department, where we can click to send fully formatted html emails based on list entries out to other teams. I'm having issues getting this to work properly, but as an interim solution, I'm wondering whether I can add a new field where users can paste the html text into and have a workflow pull from this field and output into the body of an email without showing it as plain text.
Currently, I've tried with a blank body apart from the one call to a rich text field I've called 'CommsHTML', however this outputs into the email as plain text, with all the coding elements showing. I've tried copying the HTML directly into the workflow email's 'body' and that works without issue.
Yes, it's possible. Per my test, we could pull HTML code into a sharepoint workflow email.
Below is my test:
1.Add a field "Html code"
2.In the workflow email, add this field.
3.The email I get like this:

How to create custom input/output functions in Microsoft graph (excel) api?

I am trying to use Microsoft graph api with excel.
I have a spreadsheet with pre-filled data and some calculations.
For Example :
Cells A1 to A10 has some data
Cell B1 is an input field
Cell C1 is an output field whose value is a functions of A:1 to A:10
and B1 ex: C1 = SUM(A1:A10)/B1
Is is possible to use Microsoft graph API(or any other api) to send the input data in the form on HTTP request parameter and get the result as the response of the request ?
An Ideal request-response would look something like :
http://path-to-workbook/path-to-response-data?parameterB1=someNumericValue
Response:
{
C1: <result of calculation>
}
Is there a way to achieve such functionality useing graph API ?
Anything similar or helpful response/resources will be appreciated.
Just use the update range api if your need simple logic, set the formula in request body to = SUM(A1:A10)/B1
If you need Complex IO processing, Graph API for excel is not intent to I/O operation except the Report now, so you need to submit an feature request in the uservoice for this.
Actually, there are a possible API in Graph(Just idea, not test this), it is the OneDrive API, while you modify the Excel file, send the data to a custom NET api service to calculate and then use the Drive api update the file

How to add variables (coming from a cell) in web queries in MS Excel 2010?

So, I have the excel sheet pulling data from web API call, which responds in xml format. I can successfully pull it, populate it, and work with it. And since it's a get call with some parameters appended to the query, I want those parameters to come from a cell in a separate sheet (in the same workbook) so that the user can change the cell instead of the query itself.
Is it possible? How do I do it? Will it make a new API call to get the data when the content of that cell is modified or does the user have to click on Refresh?
Thanks in advance!
UPDATE: I have tried to use something like this: http://finance.yahoo.com/q?s=[“symbol”, “Enter ticker symbol”] like defined here, but when I click Import, it gives me 404 and I just can't figure out how to do it.
The API call I'm making is to our Redmine machine and I'm using this Redmine API call

Resources