How to void a payment in netsuite using netsuite webservice - void

I need to void a payment made in netsuite by using NetSuite webservice. Is it possible? I have tried by adding Journal entry for the payment which i need to void. But it doesn't work for me. Any help on this is appreciated.

If you're using suite scripts you can use
nlapiVoidTransaction(transactionType, recordId);
This API is supported in the following script types:
Client
User Event
Scheduled
Suitelet
RESTlet
Workflow Action
The Governance on this API is 10.

The general rule in Netsuite webservice is, if it can be done in the user-interface then it can be done via webservices.
By voiding you mean, deleting the payment? If you can confirm that it is possible do to it (no other child records attach on it, etc.) then it can be done via webservices.

Voiding is not supported via web services or SuiteScript.

Related

How To Integrate Microsoft Flows

I am creating Flows in https://flow.microsoft.com,
I Don't know that How I can use or call these flow from my website. or how I can integrate it from my website.
What I want : I want to create these flow in my website and want users to select or create flows and then want to trigger these flow on some conditions.
So do I have to design this all in my website or I can integrate already created user flow in my website from
https://flow.microsoft.com
Is there any api to integrate it?
I want to integrate Dynamic 365 and sales force flows
I saw a thread Microsoft Flow integration But no answer here.
Please suggest what should I do to trigger flows from external websites.
Thanks
One option would be to select "HTTP Request" as the trigger, and pass in a JSON object to start a Flow. This would enable you to call it from an external website with whatever parameters you want.

Microsoft Flow integration

I read an article about Microsoft Flow. I was wondering if it is possible to trigger events using this in an external website.
For instance, supposing a post is made on Yammer for some approval flow based application. If an authorized user comments saying "Approved", this must trigger an action in my external website.
Is this feasible using Flow?
You can also make your own custom connectors if your website has a RESTful API. https://learn.microsoft.com/en-us/flow/register-custom-api
There is an event for Yammer in Microsoft flow. I have something set up similar for my company and Twitter. When our company is mentioned it sends a message off to our social director.
I have several such flows for things like Yelp, Twitter, Facebook.
You need your Yammer account.
The events that you can trigger from and then include a trigger word or phrase are:
Get All messages
Get Messages in a group
Get Messages from my Following Feed
Post Message
Once you have that trigger its simple enough to look for the key word within a condition step.
Chances are good there is already a template for this in Microsoft Flow. Just look at the ones for Yelp, Facebook, etc. and modify for your needs
Just as AJAX mentioned, you can apply your own Custom Connector for a case like this. A Connector is the "plugin" used with a Flow, such as Yammer.
It's a bit late since November 28th (practically a 30-day late response here), but PowerApps allows you to create your own Custom Connector applying Microsoft's API. You'd be able to plug into your website (GET, POST, etc) directly with this when you create a trigger (the condition met true) that would launch an action. If you created your own API, Microsoft would have to validate if it's met standards pertaining to security.
By applying PowerApps, you'd be able to create your own actions and triggers. From this, you can integrate your own web based process' based on documentation that was observed: https://powerapps.microsoft.com/en-us/blog/brand-new-custom-api-experience-in-powerapps/. From here, you'd be able to customize it was needed.
JSON is required for some circumstances, however Postman would be a great IDE to consider as it also applies a pre-approved API by Micrsoft.

MOTO TxType with Form Protocol Integration

We're attempting to write an application that integrates with SagePay via a web page. The information will be entered by a sales person as part of a larger application (after taking payment details over the phone from a customer) and we are trying to use the Form Protocol Integration to facilitate this.
After having successfully got this working using the PAYMENT TxType, we discovered that the client requires the transaction type of "MOTO". This doesn't appear to work by simply changing the TxType field we are sending (and the documentation is pretty explicit about which types are permitted).
Is there an easy way to resolve this without completely changing the way we're integrating with SagePay? Also, if we do need to use a different API or integration method, is there any documentation on this? None of the documentation I have found has referenced a "MOTO" TxType.
Thank you.
TxType will always be PAYMENT. You can specify the account type with the field AccountType and setting it to M for Moto
Hope this helps.
According to SagePay MOTO can not be implemented for Form Integration. h

Creating a time-driven trigger using REST API

I was thinking to write some Java code for installing a time driven trigger (to run a google apps script periodically) for an user. But could not find REST API for manipulating triggers. Wanted to know whether it is possible yet. Thank you.
Sanjay
There is no REST API to manipulate triggers. However, you can write a doPost function in your script, publish it as a web app and do a POST from your Java code.
Of course, inside your doPost() function you have to set up a trigger using the ScriptApp API.

Is it possible to send Magento Event Observer result to Custom API?

I wonder, is it possible to send Magento Event Observer result to custom API?
I'm trying to create an API to get new order via XML-RPC. Are there any examples around?
Thanks!
I haven't used any Magento Web Services, via XML-RPC. However, I have used normal SOAP Core API & SOAP V2 Web Services of Magento, and if you are using either of these two processes, then there is a solution for you.
For Magento Core API, the required method name is "sales_order.list", and for the SOAP V2, the required method name is "salesOrderList". The return type will be array of orders. The main useful thing in this Web Service method, is that there is an option to use filters. Now this filter will help you a lot in getting the new orders from a specified date & time, so you can pretty much use it to your own requirement.
For the V2 Web Services method "salesOrderList", you can use the filter as:-
<salesOrderList>
<sessionId>51ba5b3ff707f874fd76369d65bb1b7f</sessionId>
<complex_filter>
<key>created_at</key>
<value>
<key>gt</key>
<value>2011-07-14 13:38:56</value>
</value>
</complex_filter>
</salesOrderList>
What the above sample code will do is that it will fetch / retrieve those orders in array format, which have been created after 01:38:56 PM of 14th July, 2011.
Hope it helps.

Resources