Wednesday 30 November 2016

Salesforce to NetSuite Integration

What is NetSuite OpenAir?

NetSuite OpenAir is the world's No. 1 Professional Services Automation (PSA) solution. From resource management and project management to time and expense tracking, project accounting, advanced billing and invoicing, the NetSuite OpenAir supports the entire professional services delivery lifecycle with a powerful Software-as-a-Services (SaaS) suite.

How does the NetSuite OpenAir XML work?

     NetSuite OpenAir provides OpenAir XML API as a layer for exchanging the NetSuite OpenAir data between the main site and peripheral programs.

     OpenAir XML API is based on industry standard components: HTTPS (Secure Hypertext
Transfer Protocol) and XML (Extensible Markup Language).

How to authenticate NetSuite Credential via Postman Extension using Google Chrome?

1.       Enter the Request URL.
For NetSuite Sandbox: https://sandbox.openair.com/api.pl
For NetSuite Production: https://www.openair.com/api.pl
2.       Add the XML Payload to Authenticate.
3.       Set the request method as “POST” and Send the Request.

Request payload:

                The below XML Payload are used to authenticate with NetSuite Open Air. The following attributes values are mandatory for authentication:

1. Namespace
2. Key
3. Company
4. User
5. Password

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <request API_ver="1.0" client="test app" client_ver="1.1" namespace="Namespace" key="API Key">
  3. <Auth>
  4. <Login>
  5. <company>Company Name</company>
  6. <user>User Name</user>
  7. <password>Password</password>
  8. </Login>
  9. </Auth>
  10. </request>

Response:

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <response>
  3.     <Auth status = "0"></Auth >
  4. </response>




Note: <Auth status = “0”/> indicates the authentication is successful. In case of authentication failure, you will see an error code such as 401, 505, and etc.

How to read data from NetSuite?
                The below example shows how to retrieve the “Project” object record from NetSuite. The basic syntax to read the data as follows:

  1. <Read type="Project" method="all" limit="1"/>

Type - It denotes the NetSuite object/table Name.
Method - It denotes the search option. You can also read records based on filter/criteria, such as equal to, not equal to, and etc in the place of method attribute.
Limit - Number of records to Return.

Request payload:

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <request API_ver="1.0" client="test app" client_ver="1.1" namespace="Namespace" key="API Key">
  3.        <Auth>
  4.     <Login>
  5.         <company>Company Name</company>
  6.         <user>User Name</user>
  7.         <password>Password</password>
  8.     </Login>
  9.       </Auth>
  10. <Read type="Project" method="all" limit="1"/>
  11. </request>

Response:

  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <response>
  3.  <Auth status = "0"></Auth >
  4.  <Read status = "0">
  5.       <Project>
  6.      <name>Standard Activities</name>
  7.      <only_owner_can_edit>1</only_owner_can_edit>
  8.      <id>4</id>
  9.      <customer_name>Test Company</customer_name>
  10.      </Project>
  11. </Read>
  12. </response>

How to write data to NetSuite?

The below example shows how to add/create “Project” object record to NetSuite. The basic syntax to create a record as follows:

  1. <Add type="Project" enable_custom="1">
  2. <Project>
  3.    <name>Test Project</name>
  4.    <customer_name>Demo Account</customer_name>
  5. </Project>
  6. </Add>

Add the above payload after the end of </Auth> tag. It is similar to the read request example.

Type - It denotes the NetSuite object/table Name.
enable_custom - It denotes the custom field to be included while creating record. Custom fields will be in the the form of <my_custom_field__c> </my_custom_field__c>. Similar to Salesforce custom field naming convention with “__c”.

How to modify/update data to NetSuite?

The below example shows how to modify/update the “Project” object record to NetSuite. The basic syntax to modify a record as follows:

  1. <Modify type="Project" enable_custom="1">
  2. <Project>
  3.     <id>192</id>
  4.     <name>Test Project Updated</name>
  5. </Project>
  6. </Modify>

ID field is required in order to update the record.

How to delete data from NetSuite?

The below example shows how to delete the “Project” object record to NetSuite. The basic syntax to delete a record as follows:

  1. <Delete type="Project" enable_custom="1">
  2. <Project>
  3.      <id>192</id>
  4. </Project>
  5. </Delete>

Id field is required in order to delete the record.

NetSuite Project View:

Here is the “Project” view of the NetSuite Open Air.

Integrating NetSuite with Salesforce:

Step 1: Create a HttpRequest class.
Step 2: Ensure the request method is set as POST.
Step 3: Build the above example payload structure, by using standard Reading and Writing XML Using the DOM method. Set the payload in the Place of setBody method of HttpRequest.
Step 4: Make a callout from where you need, such as in Visualforce page, Batch class, Button, and etc.
Step 5: Response will be in the form of XML. So, get the response of HttpRequest and process it according to your requirements.

Summary:

The NetSuite Open Air’s Professional Service Automation tool helps improve and optimize service organizations and also provides more visibility and control for project-based businesses.

References:
1.       NetSuite Open Air Guide.

43 comments:

  1. I really appreciate for your efforts to make things easy to understand. I was really many students struggling to understand certain concepts but you made it clear and help me bring back my confidence.

    Sales force online training in hyderabad
    sales force online training in usa
    sales force training in hyderabad

    ReplyDelete
  2. I recommend to read this blog because there is a Full information of salesforce Online Training Bangalore

    ReplyDelete
  3. Awesome information really it is helpful for me salesforce Online Training Hyderabad

    ReplyDelete
  4. VEEVA CRM
    PREREQUISITE: Sales force certified Developer/Administrator
    Veeva CRM is the first solution created specifically for life sciences and the unique needs of human, consumer, and animal health.
    With advanced capabilities for planning and coordination across all channels, and predictive analytics through Veeva CRM Suggestions, Veeva CRM is the end-to-end solution that helps you adapt quickly to changing business needs and drive business growth.
    BENEFITS
    • Coordinate planning and execution across teams: Improve collaboration across key account managers, field reps, medical, and marketing to boost execution and deliver a personalized customer experience.

    • Boost productivity while remaining compliant: Optimize sales utilization and alignment while ensuring field teams engage the right providers in the right activities.

    • Drive continuous improvement faster: Enhance your customer engagement model by leveraging the latest process best practices, learning what works and evolving quickly.









    COURSE CONTENT OF VEEVA SALESFORCE ONLINE TRAINING:
    Module 1: Introduction to VEEVA
    Module 2: Overview of Admin Console
    Module 3: Data Access Security
    Module 4: Application Configuration
    Module 5: Creating Custom Objects.
    Module 6: Veeva Configuration Utilities
    Module 7: My Accounts Configuration
    Module 8: Account Object
    Module 09: Veeva Functionality Part 1
    Module 10: Products and My
    Module 11: Products Metrics Configuration
    Module 12: Call Management Configuration
    Module 13: Veeva Functionality Part 2
    Module 14: Cycle Plan Configuration
    Module 15: Sample Management
    Module 16: Data Loading
    Module 17: Territory Management Application
    Module 19: VMobile Tablet
    Module 20: Creating Reports and Dashboards
    Module 21: VInsights Configuration
    Module 22: Advanced Custome Setting



    For Joining online training batches please feel free to call or email us.
    Name ::saurabh
    Email : saurabh@maxmunus.com
    Skype id-saurabhmaxmunus
    Contact No.-+91-8553576305
    Company Website –http://www.maxmunus.com



    ReplyDelete
  5. I really enjoy the blog.Much thanks again. Really Great salesforce Online course Hyderabad

    ReplyDelete


  6. The article is well-written. It is quite informative and attractive. We are the world's leading email database vendor. We at Pegasi Media Group deal with all types of companies and industries irrespective of their sizes and the type of their businesses. Our customized email database contains the customer's geographical location, their interests and other details. Our Contact Discovery Services successfully finds out the customer information and their product or service requirements, which allows you to know their requirements.NetSuite OpenAir Users Email List

    ReplyDelete
  7. Hi,
    Thanks for sharing such an informative blog. I have read your blog and I gathered some needful information from your blog. Keep update your blog. Awaiting for your next update.

    salesforce training videos

    ReplyDelete
  8. This information is impressive. I am inspired with your post writing style & how continuously you describe this topic. Eagerly waiting for your new blog keep doing more.
    ccna Classes in Bangalore
    ccna Coaching Centres in Bangalore
    ccna Certification Course in Bangalore
    cloud training in bangalore
    cloud computing institutes in bangalore
    best cloud computing institute in bangalore

    ReplyDelete
  9. 1. many peoples want to join random whatsapp groups . as per your demand we are ready to serve you whatsapp group links . On this website you can join unlimited groups . click and get unlimited whatsapp group links 18+

    ReplyDelete
  10. Amazing Work Thank You Very Much
    See My Website

    메이저토토사이트

    ReplyDelete
  11. Thanks for providing a great informatic blog, CCC Exam Paper

    ReplyDelete
  12. Thank you for sharing valuable information. Thanks for providing a great informatic blog, really nice required information & the things I never imagined. Thanks you once again Tank Stars Mod Apk

    ReplyDelete
  13. extremely supportive post, exceptionally educational there is no uncertainty about it. A debt of gratitude is in order for imparting this data to us. I truly value your work.

    ReplyDelete
  14. Bollywood News in Hindi - Check out the latest Bollywood news, new Hindi movie reviews, box office collection updates and latest Hindi movie videos. Download free HD wallpapers of Bollywood celebrities and recent movies and much more on Bollywood Hungama.
    What If Full Season
    Infinite Full Movie

    ReplyDelete
  15. Salesforce has become a decent and valuable stage for both enormous and limited scope organizations thus far it is difficult to come by any great option of this solid entertainer, here in this article you can know why it is so? what is the top training institute for Salesforce in pune

    ReplyDelete
  16. this is the one i am searching in google to read, if you wish to buy oud perfumes in dubai check our website. we are the best perfumes seller and manufacturer in UAE.

    ReplyDelete
  17. hi thanku so much this information this blog is very useful
    cs executive
    freecseetvideolectures/

    ReplyDelete
  18. The Dollar To Real Converter Is Updated Every 15 Minutes. You Can Set It To Alert You Whenever The Rate Changes.

    ReplyDelete
  19. Read More About The Latest XM REVIEW Review In This Article. Learn How The Broker Operates And If You Should Avoid Trading With It Or Not.

    ReplyDelete
  20. Are You Thinking About Joining AVATRADE REVIEW ? If You Are Then Read The Review On AVATRADE Fx In This Article. We, Will, Tell You About The Company, The Brokers, The Platform, And All The Information You Need To Know. Read More Here.

    ReplyDelete

  21. I want the world to know about where to invest their hard earned money and get fruitful returns. If one is looking forward of investing he can go into investment of crypto coins.
    You can invest in Fudxcoin company that deals in the selling and purchasing of Crypto Currency. It is a reliable company. One need not doubt in investing in it as i have also bought crypto currency from it and feeling very satisfied with their services.
    crypto currency block chain technology

    ReplyDelete
  22. As both a Salesforce Product Development Partner and a Salesforce Gold Consulting Partner, with extensive experience in Data Science and Analytics, we possess a truly unique portfolio of skills that can overcome even the most daunting challenges. salesforce quickbooks integration

    ReplyDelete
  23. This is very good content you share on this blog. it's very informative and provide me future related information. thnaks For Sharing

    ReplyDelete
  24. Nice post very useful content
    Jewellery Software
    Jewellery Software

    ReplyDelete
  25. very useful content
    Jewellery ERP Software Dubai
    Jewellery ERP Software Dubai

    ReplyDelete
  26. i can provide schooling in your employees on a way to use NetSuite correctly. i will cover the entirety from the basics to extra advanced features.
    San Francisco NetSuite Expert

    ReplyDelete

Activities: Assign Tasks to a Queue Salesforce Lightning

Salesforce announced to assign Tasks to a Queue beginning from Spring'20 release. How does it work? In Setup, enter Queues in th...