NetSuite JournalEntry Rest URL - netsuite

I have a REST based GET url for getting all the accounts from NetSuite
https://rest.netsuite.com/rest/roles
HTTP Headers:
Authorization : NLAuth nlauth_account=1234,nlauth_email=myname#email.com,nlauth_signature=mypassword, nlauth_role=3
This is results set of accounts as json data.
I am working on connecting to Netsuite and create Journal Entry, Is there any REST URL for JournalEntry to create ie POST operation?.
If there is no REST for Journal entries, is there SOAP consuming guide to create journal entries?

As I understood it, there is a url generated for your RESTlet script when you deploy it. You can create a RESTlet for creating JE during POST, deploy it and call the generated URL from your external system.

The rest url you are using is a standard from netsuite without any code of yours.
https://rest.netsuite.com/rest/roles
For other records, you need to create a restlet script and access it from your java application.
You can also use SOAP webservices. You can find documentation for those in netsuite.

Related

Power Automate: How can I void the DocuSign envelope using Custom Connectors with a dynamic envelope id?

I would like to create a custom connector into Power Automate to void the DocuSign envelope (contract).
But the issue is I don't want to pass the envelope id as in URL this envelope id will be dynamic/parameter.
I know, we can pass this url
https://{{environment}}.docusign.net/restapi/v2.1/accounts/{{AccountID}}/envelopes/{{envelopeId}}
but here envelopeId will be fixed, I want to send as dynamic or as parameterized one or any random one.
Please help how can I use a dynamic envelope ID not fixed one.
Your question is really a Power Automate question, so I added the Power-Automate tag. I just did a quick google search and found this solution for a dynamic URL by using braces for the variable in the URL path. See the screenshot below.
If that doesn't work, and there is no way to use a dynamic URL path value as the envelope ID, then you will need to create your own API and API server.
Your server would receive the envelope ID as a parameter in the request body, and then make the appropriate API call to DocuSign.
DocuSign's use of variables in the URL path is standard REST. So I'd be very surprised if Power Automate still does not support this API pattern. (But you may need to update to the latest Power Automate version.)

Retrieving Power Form URL with API

Currently I'm using a template, creating an Envelope from that template and uploading documents and sending with the Sender View all through the API. What I would like to do is use a power form that when I hit send I can somehow retrieve that url with the API and save it to my DB. How can I get that signing URL with the API ?
That is currently not available through the API, you must use the web UI to perform this action at this time.
This may change at a later date, however I do not have any information on when that may be.
Your best option on getting it in the API is contacting your DocuSign Account Manager to submit an Enhancement Request (DocuSign Customer Support can also help you submit that as well).

How can my application retrieve custom fields from a DocuSign transaction?

I am working with DocuSign custom fields. I want to get all my custom fields that were created in the admin console by using a REST API call.
Is there any REST call to get all the custom fields?
I believe you're wanting the information that you've set up displayed in JSON via REST.
endpoint: GET https://{server}/restapi/v2/accounts/{accountId}/custom_fields
This will return your textCustomFields and listCustomFields

Creating an Docusign envelope from an external file with Rest API

I want to create a envelope in Docusign from an external source. I am having the external file URL (a PDF or DOC). So does the API support like I will give an external URL and it will upload it to docusign by creating a new envelope.
In order to add a file to a DocuSign Envelope, you need to specify the document bytes in the API request. It's not possible to simply specify the URL in the request and have DocuSign read the file automatically using the URL.
Using the REST API, there are a couple of ways to supply the document bytes in the Create Envelope API request -- the simpliest way is to include the base64-encoded byte stream in the documentBase64 property under the document object. See the REST API Guide for further details (https://10226ec94e53f4ca538f-0035e62ac0d194a46695a3b225d72cc8.ssl.cf2.rackcdn.com/rest-api-guide-v2.pdf).

Custom webservices on NetSuite

Is there a way to upload custom web services to the netsuite platform to add custom business processing logic?
Looked into SuiteApp/SuiteBundles and all they provide is a way to extend existing records/forms/lists, add custom scripts so on and so forth. Havent been able to find information on integrating external webservices.
You can use Restlets to create Custom Functionality in a particular Netsuite account and than the restlet can be accessed externally.
If you want the logic of web-service written in Java / .Net then you can use SuiteTalk to communicate with NetSuite. Where all the processing is done in your service and you use API to get/set data to/from NetSuite.
But on the flip side you have to host this service on your end.. NetSuite can only host web-services written in the form of RestLet / SuiteLet.

Resources