Jump to: navigation, search

Difference between revisions of "RESTPost (Activity)"


(Example)
(Example)
Line 49: Line 49:
 
=Example=
 
=Example=
 
Exemplary values to create service using Workflow.
 
Exemplary values to create service using Workflow.
 +
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! A+B Assign !! Value
 +
|- align="left"
 +
| DisplayName || "Assign"
 +
|- align="left"
 +
| To || args
 +
|- align="left"
 +
| Value || New UBIK.Service.DTO.V211.HierarchyDeltaArguments()
 +
|- align="left"
 +
|}
 +
 +
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! A+B Assign !! Value
 +
|- align="left"
 +
| DisplayName || "Assign"
 +
|- align="left"
 +
| To || args.StartingPoint
 +
|- align="left"
 +
| Value || New UBIK.Service.DTO.V211.HierarchyRoot()
 +
|- align="left"
 +
|}
 +
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! A+B Assign !! Value
 +
|- align="left"
 +
| DisplayName || "Assign"
 +
|- align="left"
 +
| To || args.ChildrenDepth
 +
|- align="left"
 +
| Value || 1
 +
|- align="left"
 +
|}
 +
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! A+B Assign !! Value
 +
|- align="left"
 +
| DisplayName || "Assign"
 +
|- align="left"
 +
| To || authToken
 +
|- align="left"
 +
| Value || "e1191c36-2081-4ffe-8d8e-4b798d4523a1"
 +
|- align="left"
 +
|}
  
  
Line 75: Line 124:
 
|}
 
|}
  
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! DebugMessage !! Value
 +
|- align="left"
 +
| DisplayName || DebugMessage
 +
|- align="left"
 +
| Result || ""
 +
|- align="left"
 +
| Text || result.Records.ToString()
 +
|- align="left"
 +
| UBIKObject ||
 +
|- align="left"
 +
|}
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! ForEach<UbikContent> !! Value
 +
|- align="left"
 +
| DisplayName || ForEach<UbikContent>
 +
|- align="left"
 +
| Type || UBIK.Service.UbikContent
 +
|- align="left"
 +
| Values || result.ChangedContent
 +
|- align="left"
 +
{| class="wikitable" | width = "50%"
 +
|-
 +
! DebugMessage !! Value
 +
|- align="left"
 +
| DisplayName || DebugMessage
 +
|- align="left"
 +
| Result || ""
 +
|- align="left"
 +
| Text || item.DisplayStrings(0)
 +
|- align="left"
 +
| UBIKObject ||
 +
|- align="left"
 +
|}
 +
|}
  
  

Revision as of 11:38, 8 April 2020

This activity is used to create a new resource on a server and performs an "CREATE" operation using the UBIK USAM Service.


[edit]

Description

RESTPost
Name RESTPost
Purpose Create a new resource on a server using the UBIK USAM Service
Category UBIK Web
Returns true if successful
Version 3.5.0+

Arguments

Argument Type Direction Purpose
Body String In Contains information wich is sent to the server
DisplayName String Display's the name
Error String Out Display's error message, appears when something is wrong with your request
Headers Dictionary<String, String> In Authentication and providing information
MethodName String In Name of the method
Parameter String[] In Refers to one of the pieces of data provided as input
Response String Out Data sent back to you
Result String Out Result data sent back to you
Url String In Specified Url


Usage

Use this activity to create a new resource on a server using the UBIK USAM Service.



Example

Exemplary values to create service using Workflow.

A+B Assign Value
DisplayName "Assign"
To args
Value New UBIK.Service.DTO.V211.HierarchyDeltaArguments()


A+B Assign Value
DisplayName "Assign"
To args.StartingPoint
Value New UBIK.Service.DTO.V211.HierarchyRoot()
A+B Assign Value
DisplayName "Assign"
To args.ChildrenDepth
Value 1
A+B Assign Value
DisplayName "Assign"
To authToken
Value "e1191c36-2081-4ffe-8d8e-4b798d4523a1"


RESTPost Value
Body "args"
DisplayName "RESTPost<BCHierarchyDeltaShipments,HierarchyDeltaArguments>"
Error ""
Headers ""
MethodName "GetHierarchyDeltasV212"
Parameter New String(){"APP_MT","CXT_MT",authToken,"264"}
Response ""
Result "result"
Url "https://81.10.184.186:888/UBIK/DBG/AUG/MT/TEMPLATE/Content/UbikContent.svc"
DebugMessage Value
DisplayName DebugMessage
Result ""
Text result.Records.ToString()
UBIKObject
ForEach<UbikContent> Value
DisplayName ForEach<UbikContent>
Type UBIK.Service.UbikContent
Values result.ChangedContent
DebugMessage Value
DisplayName DebugMessage
Result ""
Text item.DisplayStrings(0)
UBIKObject



See also


Useful Links [What is REST Service]