How to insert text in google docs through function execution script API - google-apps-script-api

I opened a google doc. In that document created a app script function (attached function code img) in this function i am trying to insert some text(document cursor location) in current active document. So calling this function through script run API(passing function name in API body in Executing Apps Script Functions API body). So i am not able to insert that text in document through the function execution API. If i using directly Debug and Run that function that time i am able to insert the text in document.

Related

Issue in reading paginated API data using ADF

I am trying to read the data from a paginated API using ADF copy activity. While accessing the API at first time, only the base URL is used(without any query params). When API returns the data, it will have a key called cursor with some token. This has to be passed as query string to get the next page. How to implement this using ADF?. How to append "?cursor=" in the base URL and then add cursor value from API response
First Page : {{Base URL}} #returns a JSON with a key called cursor
From Second Page : {{Base URL}}?cursor = {{value of cursor key in JSON Response}}
I have tried using Query Parameters inside the Copy Activity of pagination. But it is not working
You can use web activity to the cursor value and pass it to the relative URL in copy activity.
You can first make a call with the base URL using web activity.
Parameterize the relative URL in the dataset.
Connect web activity to copy data activity and pass the web activity output required value to the copy activity dataset parameters to run the URL with cursor value.
Ex: #concat('?cursor=',activity('Web1').output.cursor)

Can I subscribe to a "onSave" callback when a Document is saved using the WebPlayer?

Is it possible to subscribe to a callback when an analysis file is saved using the WebPlayer? For example, the user opens a document in the WebPlayer and selects File -> Save As and saves the document. I have checked the JavaScribed API for something like that without any luck.
The reason for the above is that I want to execute logic when the document is saved. For example, on my site, I have a list of analysis files titles that will have to be refreshed when the user saves a document to the location where the list is being generated.
there is no functionality for this in the product. you would probably have to write a custom extension to make this work.
on the other hand you could just refresh the iframe every x seconds, I suppose.

Getting data from netsuite using suite script

Can someone explain me how to fetch the record from netsuite (eg. if we click on the save button of inventory form, it should capture the record and display) using suite script.
thanks in advance.
You have to write a USER EVENT Script and deploy that script in the record (ex: customer record)
In the afterSubmit function of the script you can use scriptContext to get and display the value.
function afterSubmit(scriptContext) {
log.debug('scriptContext',scriptContext.newRecord); //You can see the record info on debug logs
}
If you want to get the data for some validation purposes you can use beforeSubmit function.

Netsuite Suitelet - Update view in sublist based on what is on the search form?

I'm trying to display the data in the sublist based on the field input of the search form.
Create a client script create function for fieldChanged event and write operations for and don't deploy this script on any record, you have to use this client script in for using following code.
Use this
form.setScript('CLIENT_SCRIPT_ID);

Excel.Application.WorksheetFunction.RTD is not recalculated when double click on the function

I m writing an Excel plugin that uses a custom written RTD Server and to call ConnectData function of that RTD Server, I use Excel.Application.WorksheetFunction.RTD in VBA passing required parameters to the function.
All the functionality of RTD is working fine, but if I double-click and press enter on an RTD function in Excel (In other words, when parameters do not get changed), Excel.Application.WorksheetFunction.RTD is called but ConnectData of RTD Server does not get called.
Is there anyway of getting ConnectData called in such a situation where parameters aren t changed?
Thanks
I call Application.CalculateFull from Visual Basic. I have found that triggers the RTD function being called again. I then have a button on the spreadsheet which calls a macro that contains Application.CalculateFull. Anytime I want to restart, I press the button.
An RTD topic is created for each unique combination of topic parameters of the RTD function. When you re-enter the same function call, the RDF function is called but it does not create a new topic.
ConnectData is called only when a new topic is created.
That means if you enter the same RTD function call in multiple cells, they will all share the same RTD topic. ConnectData will only be called once.

Resources