Activities
latest
false
- Overview
- Act! 365
- ActiveCampaign
- Adobe Acrobat Sign
- Adobe PDF Services
- Amazon Bedrock
- Amazon Connect
- Amazon Polly
- Amazon SageMaker - Preview
- About the Amazon SageMaker activity package
- Project Compatibility
- IJsonObject type objects
- Amazon SES
- Amazon Transcribe
- Anthropic Claude
- Asana
- AWeber
- Azure AI Document Intelligence
- Azure Maps
- BambooHR
- Box
- Release notes
- About the Box activity package
- Project compatibility
- Add Shared Link to File
- Add Shared Link to Folder
- Search for Content
- Cancel Sign Request
- List Sign Requests
- Create Sign Request
- Resend Sign Request
- Copy File
- Delete File
- Download File
- Get File Info
- Get Folder Items
- Upload File
- Copy Folder
- Create Folder
- Delete Folder
- Delete Record
- Get Record
- Insert Record
- Replace Record
- List All Records
- Brevo
- Calendly
- Campaign Monitor
- Cisco Webex Teams
- Citrix ShareFile
- Clearbit
- Confluence Cloud
- Constant Contact
- Coupa
- Customer.io
- Datadog
- Deputy
- Discord - Preview
- DocuSign
- Drip
- Dropbox
- Dropbox Business
- Egnyte
- Epic FHIR R4 - Preview
- Eventbrite
- Exchangerates
- Expensify
- Facebook
- Freshservice
- Freshbooks
- Freshdesk
- GetResponse
- GitHub
- Google Maps
- Google Speech-to-Text - Preview
- Google Text-to-Speech
- Google Vertex
- Google Vision - Preview
- GoToWebinar
- Release Notes
- About the GoToWebinar activity package
- Project Compatibility
- Delete Webinar
- Get Webinar
- Get Webinar Meeting Times
- Get Webinar Registrant
- Get Webinar Start URL
- List Account Webinars
- List All In Session Webinars
- List All Webinar Attendees
- List All Webinar Registrants
- List All Webinars
- Quick Create Webinar
- Quick Update Webinar
- Search Recording Assets
- Delete Record
- Get Record
- Insert Record
- List All Records
- List Records
- API References
- Greenhouse
- Hootsuite
- HTTP Webhook
- Hubspot CRM
- HubSpot Marketing
- IBM WatsonX
- iContact
- Insightly CRM
- Intercom
- Jira
- Keap
- Klaviyo
- LinkedIn
- Mailchimp
- MailerLite
- Mailgun
- Marketo
- Microsoft Azure OpenAI
- Microsoft Dynamics CRM
- Microsoft Sentiment
- Microsoft Teams
- Release Notes
- About the Microsoft Teams activity package
- Project compatibility
- Create Channel
- Invite Member to Channel
- List All Channels
- Send Individual Chat Message
- Reply to Channel Message
- Send Channel Message
- Send Group Chat Message
- Get Channel by Name
- Get Individual Chat
- Get Team by Name
- Invite User to Team
- List All Channel Messages
- List All Chat Messages
- List All Team Members
- List All Records
- Insert Record
- Update Record
- Get Record
- Delete Record
- Microsoft Translator
- Microsoft Vision
- Miro
- Okta
- OpenAI
- Oracle Eloqua
- Oracle NetSuite
- Release Notes
- About the Oracle NetSuite activity package
- Project Compatibility
- Delete Record
- Get Record
- Insert Record
- List All Records
- Update Record
- Create Basic Company Customer
- Create Basic Company Vendor
- Create Basic Contact
- Create Basic Individual Customer
- Create Basic Individual Vendor
- Create Basic Support Case
- Update Basic Company Customer
- Update Basic Company Vendor
- Update Basic Contact
- Update Basic Individual Customer
- Update Basic Individual Vendor
- Update Basic Support Case
- Customer Created
- Customer Updated
- Record Created
- Record Updated
- Support Case Raised
- Support Case Updated
- Vendor Created
- Vendor Updated
- Paypal
- PDFMonkey
- Pinecone
- QuickBooks Online
- Quip
- Salesforce
- Salesforce Marketing Cloud
- Release Notes
- About the Salesforce Marketing Cloud activity package
- Project Compatibility
- Salesforce Marketing Cloud Scope
- Invoke Operation
- Delete Record
- Get Record
- Insert Record
- Update Record
- List Records
- List All Records
- Create Campaign
- Delete Campaign
- Get Campaign
- List All Campaigns
- Create Contact
- Delete Contact
- List All Contacts
- Update Contact
- Create Journey (Basic)
- Delete Journey
- Get Journey
- List All Journeys
- Update Journey
- Create List (Basic)
- Delete List
- Get List
- List All Lists
- Update List
- SAP Build Process Automation - Preview
- SAP Cloud for Customer
- SAP Concur
- SendGrid
- ServiceNow
- Release Notes
- About the ServiceNow activity package
- Project Compatibility
- Troubleshooting
- Create New Incident
- Create Incident Task
- List All Incidents
- Update Incident
- Add Attachment
- Download Attachment
- Get Incident Task
- Get Attachment
- List All Attachments
- List All Incident Tasks
- Update Incident Task
- When an Event Happens
- Delete Attachment
- Delete Record
- Get Record
- Insert Record
- List All Records
- Update Record
- Incident Created
- Incident Updated
- Incident Task Created
- Incident Task Updated
- Record Created
- Record Updated
- Shopify
- Slack - Preview
- About the Slack activity package
- Project Compatibility
- Create Channel
- Invite Users to Channel
- List All Channels
- Remove User from Channel
- Get File Info
- Send File to Channel
- Send Message to Channel
- Send Message to User
- Send Reply
- Send Button Response
- Add or Replace Users of User Group
- Create User Group
- Get User by Email
- List All User Groups
- List All Users
- Set Channel Topic
- Join Channel
- Archive Channel
- Create Group Direct Message
- Get Channel Info
- Button Clicked
- SmartRecruiters
- Smartsheet
- Release notes
- About the Smartsheet activity package
- Project compatibility
- Attach URL to Sheet
- Add Column
- Update Column
- Add Row
- Update Row
- Get Sheet
- List All Sheets
- Attach File to Comment
- Search Everything
- Update Sheet
- Create Sheet from Template
- Send Sheet Via Email
- List All Folders
- Download Attachment
- Attach File to Row
- Attach URL to Row
- Attach File to Sheet
- List All Workspaces
- List All Attachments
- Delete Row
- Download Sheet
- Search Sheets
- Insert Record
- Get Record
- List All Records
- Delete Record
- Snowflake
- Stripe
- Sugar Enterprise
- Sugar Professional
- Sugar Sell
- Sugar Serve
- TangoCard
- Todoist
- Trello
- Twilio
- UiPath GenAI Activities - Preview
- X (formerly Twitter)
- WooCommerce
- Workable
- Workday
- Youtube
- Zendesk
- Zoho Campaigns
- Zoho Desk
- Zoho Mail
- Zoom
- ZoomInfo
IJsonObject type objects
Integration Service Activities
Last updated May 9, 2024
IJsonObject type objects
When working with Sagemaker ML models, the response object is returned in JSON format and can differ greatly depending on the model employed. Users need to leverage Newtonsoft's JSON library from Studio to traverse and work with the JSON responses from Sagemaker. Some ML models return a response field with a singular value that can be accessed as a string, others contain arrays of multiple probabilities that can be matched with labels. Some examples include:
Example 1
{ "probabilities": [ 0.994889379, 0.00511063961 ] }
{ "probabilities": [ 0.994889379, 0.00511063961 ] }
The response from a Sagemaker Get Inference step needs to be saved as an
IJSONObject
. This object can then be converted in a subsequent step
to a JObject
. Once this is done, you can use any of the methods
available from Newtonsoft to parse and work with the JSON data. Looking at
Example 1
, you can perform
newres.ToJObject("probabilities").ToList(0)
to grab the probability
0.994889379
.
Example 2
{
"probabilities": [
0.000404331338,
0.000591270567,
0.000552555488,
0.000212208135,
0.00052378932,
...
0.990523789322
],
"labels": [
"background",
"tench",
"goldfish",
"great white shark",
"tiger shark",
...
"tabby"
],
"predicted_label": "tabby"
}
{
"probabilities": [
0.000404331338,
0.000591270567,
0.000552555488,
0.000212208135,
0.00052378932,
...
0.990523789322
],
"labels": [
"background",
"tench",
"goldfish",
"great white shark",
"tiger shark",
...
"tabby"
],
"predicted_label": "tabby"
}
Depending on your underlying ML model it may provide a singular value to use like a
predicted_label
from Example 2. In this case you could do
newres.ToJObject("predicted_label")
to get the value
tabby
.
Studio comes with built-in steps to create
ForEach
loops and
If
or Then
conditions. The
JObject
queries can be combined with these steps to create more
powerful workflows, like the example below:
The
JObject
class in the Newtonsoft.Json
library is
a representation of a JSON object. It allows you to manipulate and work with JSON
data in Studio Web.
Here are some of the most commonly used methods of the JObject class:
Parse
: This method is used to parse a string representation of a JSON object into aJObject
instance.ToString
: This method returns a string representation of the JSON object.Add
: This method is used to add a new property to the JSON object.Remove
: This method is used to remove a property from the JSON object.ContainsKey
: This method returns a Boolean value indicating whether the JSON object contains a property with the specified key.GetValue
: This method returns the value of the property with the specified key.SetValue
: This method sets the value of the property with the specified key.Count
: This property returns the number of properties in the JSON object.Properties
: This property returns a collection of all the properties in the JSON object.DeepClone
: This method creates a deep copy of the JSON object.