Chilkat Online Tools

SQL Server / Salesforce Platform APIs / Feed Elements, Batch Post

Back to Collection Items

-- Important: See this note about string length limitations for strings returned by sp_OAMethod calls.
--
CREATE PROCEDURE ChilkatSample
AS
BEGIN
    DECLARE @hr int
    DECLARE @iTmp0 int
    -- Important: Do not use nvarchar(max).  See the warning about using nvarchar(max).
    DECLARE @sTmp0 nvarchar(4000)
    -- This example assumes the Chilkat API to have been previously unlocked.
    -- See Global Unlock Sample for sample code.

    DECLARE @http int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.Http', @http OUT
    IF @hr <> 0
    BEGIN
        PRINT 'Failed to create ActiveX component'
        RETURN
    END

    DECLARE @success int

    -- Use this online tool to generate code from sample JSON: Generate Code to Create JSON

    -- The following JSON is sent in the request body.

    -- {
    --   "inputs": [
    --     {
    --       "richInput": {
    --         "subjectId": "<USER_GROUP_RECORD_ID>",
    --         "body": {
    --           "messageSegments": [
    --             {
    --               "type": "Text",
    --               "text": "Post Number 1"
    --             }
    --           ]
    --         },
    --         "capabilities": {
    --           "files": {
    --             "items": [
    --               {
    --                 "id": "<FILE_ID>"
    --               }
    --             ]
    --           }
    --         },
    --         "feedElementType": "FeedItem"
    --       }
    --     },
    --     {
    --       "richInput": {
    --         "subjectId": "<USER_GROUP_RECORD_ID>",
    --         "body": {
    --           "messageSegments": [
    --             {
    --               "type": "Text",
    --               "text": "Post Number 2"
    --             }
    --           ]
    --         },
    --         "feedElementType": "FeedItem"
    --       }
    --     },
    --     {
    --       "richInput": {
    --         "subjectId": "me",
    --         "body": {
    --           "messageSegments": [
    --             {
    --               "type": "Text",
    --               "text": "Post Number 3 with Inline"
    --             },
    --             {
    --               "type": "InlineImage",
    --               "fileId": "<FILE_ID>",
    --               "altText": "Test Inline"
    --             }
    --           ]
    --         },
    --         "feedElementType": "FeedItem"
    --       }
    --     }
    --   ]
    -- }

    DECLARE @json int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @json OUT

    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[0].richInput.subjectId', '<USER_GROUP_RECORD_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[0].richInput.body.messageSegments[0].type', 'Text'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[0].richInput.body.messageSegments[0].text', 'Post Number 1'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[0].richInput.capabilities.files.items[0].id', '<FILE_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[0].richInput.feedElementType', 'FeedItem'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[1].richInput.subjectId', '<USER_GROUP_RECORD_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[1].richInput.body.messageSegments[0].type', 'Text'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[1].richInput.body.messageSegments[0].text', 'Post Number 2'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[1].richInput.feedElementType', 'FeedItem'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[2].richInput.subjectId', 'me'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[2].richInput.body.messageSegments[0].type', 'Text'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[2].richInput.body.messageSegments[0].text', 'Post Number 3 with Inline'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[2].richInput.body.messageSegments[1].type', 'InlineImage'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[2].richInput.body.messageSegments[1].fileId', '<FILE_ID>'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[2].richInput.body.messageSegments[1].altText', 'Test Inline'
    EXEC sp_OAMethod @json, 'UpdateString', @success OUT, 'inputs[2].richInput.feedElementType', 'FeedItem'

    -- Adds the "Authorization: Bearer <access_token>" header.
    EXEC sp_OASetProperty @http, 'AuthToken', '<access_token>'
    EXEC sp_OAMethod @http, 'SetRequestHeader', NULL, 'Content-Type', 'application/json'

    DECLARE @resp int
    EXEC sp_OAMethod @http, 'PostJson3', @resp OUT, 'https://domain.com/services/data/v{{version}}/chatter/feed-elements/batch', 'application/json', @json
    EXEC sp_OAGetProperty @http, 'LastMethodSuccess', @iTmp0 OUT
    IF @iTmp0 = 0
      BEGIN
        EXEC sp_OAGetProperty @http, 'LastErrorText', @sTmp0 OUT
        PRINT @sTmp0
        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        RETURN
      END

    DECLARE @sbResponseBody int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.StringBuilder', @sbResponseBody OUT

    EXEC sp_OAMethod @resp, 'GetBodySb', @success OUT, @sbResponseBody

    DECLARE @jResp int
    EXEC @hr = sp_OACreate 'Chilkat_9_5_0.JsonObject', @jResp OUT

    EXEC sp_OAMethod @jResp, 'LoadSb', @success OUT, @sbResponseBody
    EXEC sp_OASetProperty @jResp, 'EmitCompact', 0


    PRINT 'Response Body:'
    EXEC sp_OAMethod @jResp, 'Emit', @sTmp0 OUT
    PRINT @sTmp0

    DECLARE @respStatusCode int
    EXEC sp_OAGetProperty @resp, 'StatusCode', @respStatusCode OUT

    PRINT 'Response Status Code = ' + @respStatusCode
    IF @respStatusCode >= 400
      BEGIN

        PRINT 'Response Header:'
        EXEC sp_OAGetProperty @resp, 'Header', @sTmp0 OUT
        PRINT @sTmp0

        PRINT 'Failed.'
        EXEC @hr = sp_OADestroy @resp

        EXEC @hr = sp_OADestroy @http
        EXEC @hr = sp_OADestroy @json
        EXEC @hr = sp_OADestroy @sbResponseBody
        EXEC @hr = sp_OADestroy @jResp
        RETURN
      END
    EXEC @hr = sp_OADestroy @resp

    -- Sample JSON response:
    -- (Sample code for parsing the JSON response is shown below)

    -- {
    --   "hasErrors": true,
    --   "results": [
    --     {
    --       "result": {
    --         "actor": {
    --           "additionalLabel": null,
    --           "communityNickname": "User1696423780773910041",
    --           "companyName": "Salesforce",
    --           "displayName": "Name",
    --           "firstName": "Firstname",
    --           "id": "005...",
    --           "isActive": true,
    --           "isInThisCommunity": true,
    --           "lastName": "Name",
    --           "motif": {
    --             "color": "1B96FF",
    --             "largeIconUrl": "/img/icon/profile64.png",
    --             "mediumIconUrl": "/img/icon/profile32.png",
    --             "smallIconUrl": "/img/icon/profile16.png",
    --             "svgIconUrl": null
    --           },
    --           "mySubscription": null,
    --           "name": "Name",
    --           "outOfOffice": {
    --             "message": ""
    --           },
    --           "photo": {
    --             "fullEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1",
    --             "largePhotoUrl": "https://<my_domain>/profilephoto/729.../F",
    --             "mediumPhotoUrl": "https://<my_domain>/profilephoto/729.../M",
    --             "photoVersionId": "729...",
    --             "smallPhotoUrl": "https://<my_domain>/profilephoto/729.../T",
    --             "standardEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1",
    --             "url": "/services/data/v58.0/connect/user-profiles/005.../photo"
    --           },
    --           "reputation": null,
    --           "title": null,
    --           "type": "User",
    --           "url": "/services/data/v58.0/chatter/users/005...",
    --           "userType": "Internal"
    --         },
    --         "body": {
    --           "isRichText": false,
    --           "messageSegments": [
    --             {
    --               "text": "Post Number 1",
    --               "type": "Text"
    --             }
    --           ],
    --           "text": "Post Number 1"
    --         },
    --         "capabilities": {
    --           "associatedActions": {
    --             "platformActionGroups": [
    --             ]
    --           },
    --           "bookmarks": {
    --             "isBookmarkedByCurrentUser": false
    --           },
    --           "chatterLikes": {
    --             "isLikedByCurrentUser": false,
    --             "likesMessage": null,
    --             "myLike": null,
    --             "page": {
    --               "currentPageToken": 0,
    --               "currentPageUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/chatter-likes/items",
    --               "items": [
    --               ],
    --               "nextPageToken": null,
    --               "nextPageUrl": null,
    --               "previousPageToken": null,
    --               "previousPageUrl": null,
    --               "total": 0
    --             }
    --           },
    --           "close": {
    --             "canContextUserUpdateIsClosed": true,
    --             "isClosed": false
    --           },
    --           "comments": {
    --             "page": {
    --               "currentPageToken": null,
    --               "currentPageUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/comments/items",
    --               "items": [
    --               ],
    --               "nextPageToken": null,
    --               "nextPageUrl": null,
    --               "previousPageToken": null,
    --               "previousPageUrl": null,
    --               "total": 0
    --             }
    --           },
    --           "edit": {
    --             "isEditRestricted": false,
    --             "isEditableByMeUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/edit/is-editable-by-me",
    --             "lastEditedBy": null,
    --             "lastEditedDate": null,
    --             "latestRevision": 1,
    --             "relativeLastEditedDate": null
    --           },
    --           "interactions": {
    --             "count": 0
    --           },
    --           "mute": {
    --             "isMutedByMe": false
    --           },
    --           "readBy": {
    --             "isReadByMe": true,
    --             "lastReadDateByMe": "2023-11-22T11:11:25.000Z",
    --             "page": {
    --               "currentPageToken": null,
    --               "currentPageUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/read-by/items?pageSize=3",
    --               "items": [
    --               ],
    --               "nextPageToken": null,
    --               "nextPageUrl": null,
    --               "previousPageToken": null,
    --               "previousPageUrl": null,
    --               "total": 0
    --             }
    --           },
    --           "status": {
    --             "feedEntityStatus": "Published",
    --             "isApprovableByMe": true
    --           },
    --           "topics": {
    --             "canAssignTopics": true,
    --             "items": [
    --             ]
    --           },
    --           "upDownVote": {
    --             "downVoteCount": 0,
    --             "myVote": "None",
    --             "upVoteCount": 0
    --           }
    --         },
    --         "clientInfo": {
    --           "applicationName": "Postman Playground",
    --           "applicationUrl": null
    --         },
    --         "createdDate": "2023-11-22T11:11:25.000Z",
    --         "event": false,
    --         "feedElementType": "FeedItem",
    --         "hasVerifiedComment": false,
    --         "header": {
    --           "isRichText": null,
    --           "messageSegments": [
    --             {
    --               "motif": {
    --                 "color": "1B96FF",
    --                 "largeIconUrl": "/img/icon/profile64.png",
    --                 "mediumIconUrl": "/img/icon/profile32.png",
    --                 "smallIconUrl": "/img/icon/profile16.png",
    --                 "svgIconUrl": null
    --               },
    --               "reference": {
    --                 "id": "005...",
    --                 "url": "/services/data/v58.0/chatter/users/005..."
    --               },
    --               "text": "Name",
    --               "type": "EntityLink"
    --             }
    --           ],
    --           "text": "Name"
    --         },
    --         "id": "0D5...",
    --         "isDeleteRestricted": false,
    --         "isSharable": false,
    --         "modifiedDate": "2023-11-22T11:11:25.000Z",
    --         "originalFeedItem": null,
    --         "originalFeedItemActor": null,
    --         "parent": {
    --           "entityLabel": {
    --             "label": "Account",
    --             "labelPlural": "Accounts"
    --           },
    --           "id": "001...",
    --           "motif": {
    --             "color": "5867E8",
    --             "largeIconUrl": "/img/icon/accounts64.png",
    --             "mediumIconUrl": "/img/icon/accounts32.png",
    --             "smallIconUrl": "/img/icon/accounts16.png",
    --             "svgIconUrl": null
    --           },
    --           "mySubscription": null,
    --           "name": "Burlington Textiles Corp of America",
    --           "type": "Account",
    --           "url": "/services/data/v58.0/chatter/records/001..."
    --         },
    --         "photoUrl": "https://<my_domain>/profilephoto/729.../T",
    --         "relativeCreatedDate": "Just now",
    --         "type": "TextPost",
    --         "url": "/services/data/v58.0/chatter/feed-elements/0D5...",
    --         "visibility": "InternalUsers"
    --       },
    --       "statusCode": 201
    --     },
    --     {
    --       "result": {
    --         "actor": {
    --           "additionalLabel": null,
    --           "communityNickname": "User1696423780773910041",
    --           "companyName": "Salesforce",
    --           "displayName": "Name",
    --           "firstName": "Firstname",
    --           "id": "005...",
    --           "isActive": true,
    --           "isInThisCommunity": true,
    --           "lastName": "Name",
    --           "motif": {
    --             "color": "1B96FF",
    --             "largeIconUrl": "/img/icon/profile64.png",
    --             "mediumIconUrl": "/img/icon/profile32.png",
    --             "smallIconUrl": "/img/icon/profile16.png",
    --             "svgIconUrl": null
    --           },
    --           "mySubscription": null,
    --           "name": "Name",
    --           "outOfOffice": {
    --             "message": ""
    --           },
    --           "photo": {
    --             "fullEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1",
    --             "largePhotoUrl": "https://<my_domain>/profilephoto/729.../F",
    --             "mediumPhotoUrl": "https://<my_domain>/profilephoto/729.../M",
    --             "photoVersionId": "729...",
    --             "smallPhotoUrl": "https://<my_domain>/profilephoto/729.../T",
    --             "standardEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1",
    --             "url": "/services/data/v58.0/connect/user-profiles/005.../photo"
    --           },
    --           "reputation": null,
    --           "title": null,
    --           "type": "User",
    --           "url": "/services/data/v58.0/chatter/users/005...",
    --           "userType": "Internal"
    --         },
    --         "body": {
    --           "isRichText": false,
    --           "messageSegments": [
    --             {
    --               "text": "Post Number 2",
    --               "type": "Text"
    --             }
    --           ],
    --           "text": "Post Number 2"
    --         },
    --         "capabilities": {
    --           "associatedActions": {
    --             "platformActionGroups": [
    --             ]
    --           },
    --           "bookmarks": {
    --             "isBookmarkedByCurrentUser": false
    --           },
    --           "chatterLikes": {
    --             "isLikedByCurrentUser": false,
    --             "likesMessage": null,
    --             "myLike": null,
    --             "page": {
    --               "currentPageToken": 0,
    --               "currentPageUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/chatter-likes/items",
    --               "items": [
    --               ],
    --               "nextPageToken": null,
    --               "nextPageUrl": null,
    --               "previousPageToken": null,
    --               "previousPageUrl": null,
    --               "total": 0
    --             }
    --           },
    --           "close": {
    --             "canContextUserUpdateIsClosed": true,
    --             "isClosed": false
    --           },
    --           "comments": {
    --             "page": {
    --               "currentPageToken": null,
    --               "currentPageUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/comments/items",
    --               "items": [
    --               ],
    --               "nextPageToken": null,
    --               "nextPageUrl": null,
    --               "previousPageToken": null,
    --               "previousPageUrl": null,
    --               "total": 0
    --             }
    --           },
    --           "edit": {
    --             "isEditRestricted": false,
    --             "isEditableByMeUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/edit/is-editable-by-me",
    --             "lastEditedBy": null,
    --             "lastEditedDate": null,
    --             "latestRevision": 1,
    --             "relativeLastEditedDate": null
    --           },
    --           "interactions": {
    --             "count": 0
    --           },
    --           "mute": {
    --             "isMutedByMe": false
    --           },
    --           "readBy": {
    --             "isReadByMe": true,
    --             "lastReadDateByMe": "2023-11-22T11:11:25.000Z",
    --             "page": {
    --               "currentPageToken": null,
    --               "currentPageUrl": "/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/read-by/items?pageSize=3",
    --               "items": [
    --               ],
    --               "nextPageToken": null,
    --               "nextPageUrl": null,
    --               "previousPageToken": null,
    --               "previousPageUrl": null,
    --               "total": 0
    --             }
    --           },
    --           "status": {
    --             "feedEntityStatus": "Published",
    --             "isApprovableByMe": true
    --           },
    --           "topics": {
    --             "canAssignTopics": true,
    --             "items": [
    --             ]
    --           },
    --           "upDownVote": {
    --             "downVoteCount": 0,
    --             "myVote": "None",
    --             "upVoteCount": 0
    --           }
    --         },
    --         "clientInfo": {
    --           "applicationName": "Postman Playground",
    --           "applicationUrl": null
    --         },
    --         "createdDate": "2023-11-22T11:11:25.000Z",
    --         "event": false,
    --         "feedElementType": "FeedItem",
    --         "hasVerifiedComment": false,
    --         "header": {
    --           "isRichText": null,
    --           "messageSegments": [
    --             {
    --               "motif": {
    --                 "color": "1B96FF",
    --                 "largeIconUrl": "/img/icon/profile64.png",
    --                 "mediumIconUrl": "/img/icon/profile32.png",
    --                 "smallIconUrl": "/img/icon/profile16.png",
    --                 "svgIconUrl": null
    --               },
    --               "reference": {
    --                 "id": "005...",
    --                 "url": "/services/data/v58.0/chatter/users/005..."
    --               },
    --               "text": "Name",
    --               "type": "EntityLink"
    --             }
    --           ],
    --           "text": "Name"
    --         },
    --         "id": "0D5...",
    --         "isDeleteRestricted": false,
    --         "isSharable": true,
    --         "modifiedDate": "2023-11-22T11:11:25.000Z",
    --         "originalFeedItem": null,
    --         "originalFeedItemActor": null,
    --         "parent": {
    --           "additionalLabel": null,
    --           "communityNickname": "User1696423780773910041",
    --           "companyName": "Salesforce",
    --           "displayName": "Name",
    --           "firstName": "Firstname",
    --           "id": "005...",
    --           "isActive": true,
    --           "isInThisCommunity": true,
    --           "lastName": "Name",
    --           "motif": {
    --             "color": "1B96FF",
    --             "largeIconUrl": "/img/icon/profile64.png",
    --             "mediumIconUrl": "/img/icon/profile32.png",
    --             "smallIconUrl": "/img/icon/profile16.png",
    --             "svgIconUrl": null
    --           },
    --           "mySubscription": null,
    --           "name": "Name",
    --           "outOfOffice": {
    --             "message": ""
    --           },
    --           "photo": {
    --             "fullEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1",
    --             "largePhotoUrl": "https://<my_domain>/profilephoto/729.../F",
    --             "mediumPhotoUrl": "https://<my_domain>/profilephoto/729.../M",
    --             "photoVersionId": "729...",
    --             "smallPhotoUrl": "https://<my_domain>/profilephoto/729.../T",
    --             "standardEmailPhotoUrl": "https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1",
    --             "url": "/services/data/v58.0/connect/user-profiles/005.../photo"
    --           },
    --           "reputation": null,
    --           "title": null,
    --           "type": "User",
    --           "url": "/services/data/v58.0/chatter/users/005...",
    --           "userType": "Internal"
    --         },
    --         "photoUrl": "https://<my_domain>/profilephoto/729.../T",
    --         "relativeCreatedDate": "Just now",
    --         "type": "TextPost",
    --         "url": "/services/data/v58.0/chatter/feed-elements/0D5...",
    --         "visibility": "AllUsers"
    --       },
    --       "statusCode": 201
    --     },
    --     {
    --       "result": [
    --         {
    --           "errorCode": "INVALID_MARKUP",
    --           "message": "Error while parsing Rich Text Content: The value of attribute "src" associated with an element type "img" must not contain the '<' character."
    --         }
    --       ],
    --       "statusCode": 400
    --     }
    --   ]
    -- }

    -- Sample code for parsing the JSON response...
    -- Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    DECLARE @AdditionalLabel nvarchar(4000)

    DECLARE @CommunityNickname nvarchar(4000)

    DECLARE @CompanyName nvarchar(4000)

    DECLARE @DisplayName nvarchar(4000)

    DECLARE @FirstName nvarchar(4000)

    DECLARE @Id nvarchar(4000)

    DECLARE @IsActive int

    DECLARE @IsInThisCommunity int

    DECLARE @LastName nvarchar(4000)

    DECLARE @Color nvarchar(4000)

    DECLARE @LargeIconUrl nvarchar(4000)

    DECLARE @MediumIconUrl nvarchar(4000)

    DECLARE @SmallIconUrl nvarchar(4000)

    DECLARE @SvgIconUrl nvarchar(4000)

    DECLARE @MySubscription nvarchar(4000)

    DECLARE @Name nvarchar(4000)

    DECLARE @Message nvarchar(4000)

    DECLARE @FullEmailPhotoUrl nvarchar(4000)

    DECLARE @LargePhotoUrl nvarchar(4000)

    DECLARE @MediumPhotoUrl nvarchar(4000)

    DECLARE @PhotoVersionId nvarchar(4000)

    DECLARE @SmallPhotoUrl nvarchar(4000)

    DECLARE @StandardEmailPhotoUrl nvarchar(4000)

    DECLARE @v_Url nvarchar(4000)

    DECLARE @Reputation nvarchar(4000)

    DECLARE @Title nvarchar(4000)

    DECLARE @v_Type nvarchar(4000)

    DECLARE @ActorUrl nvarchar(4000)

    DECLARE @UserType nvarchar(4000)

    DECLARE @IsRichText int

    DECLARE @Text nvarchar(4000)

    DECLARE @IsBookmarkedByCurrentUser int

    DECLARE @IsLikedByCurrentUser int

    DECLARE @LikesMessage nvarchar(4000)

    DECLARE @MyLike nvarchar(4000)

    DECLARE @CurrentPageToken int

    DECLARE @CurrentPageUrl nvarchar(4000)

    DECLARE @NextPageToken nvarchar(4000)

    DECLARE @NextPageUrl nvarchar(4000)

    DECLARE @PreviousPageToken nvarchar(4000)

    DECLARE @PreviousPageUrl nvarchar(4000)

    DECLARE @Total int

    DECLARE @CanContextUserUpdateIsClosed int

    DECLARE @IsClosed int

    DECLARE @PageCurrentPageToken nvarchar(4000)

    DECLARE @PageCurrentPageUrl nvarchar(4000)

    DECLARE @PageNextPageToken nvarchar(4000)

    DECLARE @PageNextPageUrl nvarchar(4000)

    DECLARE @PagePreviousPageToken nvarchar(4000)

    DECLARE @PagePreviousPageUrl nvarchar(4000)

    DECLARE @PageTotal int

    DECLARE @IsEditRestricted int

    DECLARE @IsEditableByMeUrl nvarchar(4000)

    DECLARE @LastEditedBy nvarchar(4000)

    DECLARE @LastEditedDate nvarchar(4000)

    DECLARE @LatestRevision int

    DECLARE @RelativeLastEditedDate nvarchar(4000)

    DECLARE @Count int

    DECLARE @IsMutedByMe int

    DECLARE @IsReadByMe int

    DECLARE @LastReadDateByMe nvarchar(4000)

    DECLARE @FeedEntityStatus nvarchar(4000)

    DECLARE @IsApprovableByMe int

    DECLARE @CanAssignTopics int

    DECLARE @DownVoteCount int

    DECLARE @MyVote nvarchar(4000)

    DECLARE @UpVoteCount int

    DECLARE @ApplicationName nvarchar(4000)

    DECLARE @ApplicationUrl nvarchar(4000)

    DECLARE @CreatedDate nvarchar(4000)

    DECLARE @v_Event int

    DECLARE @FeedElementType nvarchar(4000)

    DECLARE @HasVerifiedComment int

    DECLARE @HeaderIsRichText nvarchar(4000)

    DECLARE @HeaderText nvarchar(4000)

    DECLARE @resultId nvarchar(4000)

    DECLARE @IsDeleteRestricted int

    DECLARE @IsSharable int

    DECLARE @ModifiedDate nvarchar(4000)

    DECLARE @OriginalFeedItem nvarchar(4000)

    DECLARE @OriginalFeedItemActor nvarchar(4000)

    DECLARE @Label nvarchar(4000)

    DECLARE @LabelPlural nvarchar(4000)

    DECLARE @ParentId nvarchar(4000)

    DECLARE @MotifColor nvarchar(4000)

    DECLARE @MotifLargeIconUrl nvarchar(4000)

    DECLARE @MotifMediumIconUrl nvarchar(4000)

    DECLARE @MotifSmallIconUrl nvarchar(4000)

    DECLARE @MotifSvgIconUrl nvarchar(4000)

    DECLARE @ParentMySubscription nvarchar(4000)

    DECLARE @ParentName nvarchar(4000)

    DECLARE @ParentType nvarchar(4000)

    DECLARE @ParentUrl nvarchar(4000)

    DECLARE @PhotoUrl nvarchar(4000)

    DECLARE @RelativeCreatedDate nvarchar(4000)

    DECLARE @resultType nvarchar(4000)

    DECLARE @resultUrl nvarchar(4000)

    DECLARE @Visibility nvarchar(4000)

    DECLARE @statusCode int

    DECLARE @ParentAdditionalLabel nvarchar(4000)

    DECLARE @ParentCommunityNickname nvarchar(4000)

    DECLARE @ParentCompanyName nvarchar(4000)

    DECLARE @ParentDisplayName nvarchar(4000)

    DECLARE @ParentFirstName nvarchar(4000)

    DECLARE @ParentIsActive int

    DECLARE @ParentIsInThisCommunity int

    DECLARE @ParentLastName nvarchar(4000)

    DECLARE @OutOfOfficeMessage nvarchar(4000)

    DECLARE @PhotoFullEmailPhotoUrl nvarchar(4000)

    DECLARE @PhotoLargePhotoUrl nvarchar(4000)

    DECLARE @PhotoMediumPhotoUrl nvarchar(4000)

    DECLARE @PhotoPhotoVersionId nvarchar(4000)

    DECLARE @PhotoSmallPhotoUrl nvarchar(4000)

    DECLARE @PhotoStandardEmailPhotoUrl nvarchar(4000)

    DECLARE @ParentReputation nvarchar(4000)

    DECLARE @ParentTitle nvarchar(4000)

    DECLARE @ParentUserType nvarchar(4000)

    DECLARE @j int

    DECLARE @count_j int

    DECLARE @text nvarchar(4000)

    DECLARE @v_type nvarchar(4000)

    DECLARE @motifColor nvarchar(4000)

    DECLARE @motifLargeIconUrl nvarchar(4000)

    DECLARE @motifMediumIconUrl nvarchar(4000)

    DECLARE @motifSmallIconUrl nvarchar(4000)

    DECLARE @motifSvgIconUrl nvarchar(4000)

    DECLARE @referenceId nvarchar(4000)

    DECLARE @referenceUrl nvarchar(4000)

    DECLARE @errorCode nvarchar(4000)

    DECLARE @message nvarchar(4000)

    DECLARE @hasErrors int
    EXEC sp_OAMethod @jResp, 'BoolOf', @hasErrors OUT, 'hasErrors'
    DECLARE @i int
    SELECT @i = 0
    DECLARE @count_i int
    EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_i OUT, 'results'
    WHILE @i < @count_i
      BEGIN
        EXEC sp_OASetProperty @jResp, 'I', @i
        EXEC sp_OAMethod @jResp, 'StringOf', @AdditionalLabel OUT, 'results[i].result.actor.additionalLabel'
        EXEC sp_OAMethod @jResp, 'StringOf', @CommunityNickname OUT, 'results[i].result.actor.communityNickname'
        EXEC sp_OAMethod @jResp, 'StringOf', @CompanyName OUT, 'results[i].result.actor.companyName'
        EXEC sp_OAMethod @jResp, 'StringOf', @DisplayName OUT, 'results[i].result.actor.displayName'
        EXEC sp_OAMethod @jResp, 'StringOf', @FirstName OUT, 'results[i].result.actor.firstName'
        EXEC sp_OAMethod @jResp, 'StringOf', @Id OUT, 'results[i].result.actor.id'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsActive OUT, 'results[i].result.actor.isActive'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsInThisCommunity OUT, 'results[i].result.actor.isInThisCommunity'
        EXEC sp_OAMethod @jResp, 'StringOf', @LastName OUT, 'results[i].result.actor.lastName'
        EXEC sp_OAMethod @jResp, 'StringOf', @Color OUT, 'results[i].result.actor.motif.color'
        EXEC sp_OAMethod @jResp, 'StringOf', @LargeIconUrl OUT, 'results[i].result.actor.motif.largeIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @MediumIconUrl OUT, 'results[i].result.actor.motif.mediumIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @SmallIconUrl OUT, 'results[i].result.actor.motif.smallIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @SvgIconUrl OUT, 'results[i].result.actor.motif.svgIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @MySubscription OUT, 'results[i].result.actor.mySubscription'
        EXEC sp_OAMethod @jResp, 'StringOf', @Name OUT, 'results[i].result.actor.name'
        EXEC sp_OAMethod @jResp, 'StringOf', @Message OUT, 'results[i].result.actor.outOfOffice.message'
        EXEC sp_OAMethod @jResp, 'StringOf', @FullEmailPhotoUrl OUT, 'results[i].result.actor.photo.fullEmailPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @LargePhotoUrl OUT, 'results[i].result.actor.photo.largePhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @MediumPhotoUrl OUT, 'results[i].result.actor.photo.mediumPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoVersionId OUT, 'results[i].result.actor.photo.photoVersionId'
        EXEC sp_OAMethod @jResp, 'StringOf', @SmallPhotoUrl OUT, 'results[i].result.actor.photo.smallPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @StandardEmailPhotoUrl OUT, 'results[i].result.actor.photo.standardEmailPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_Url OUT, 'results[i].result.actor.photo.url'
        EXEC sp_OAMethod @jResp, 'StringOf', @Reputation OUT, 'results[i].result.actor.reputation'
        EXEC sp_OAMethod @jResp, 'StringOf', @Title OUT, 'results[i].result.actor.title'
        EXEC sp_OAMethod @jResp, 'StringOf', @v_Type OUT, 'results[i].result.actor.type'
        EXEC sp_OAMethod @jResp, 'StringOf', @ActorUrl OUT, 'results[i].result.actor.url'
        EXEC sp_OAMethod @jResp, 'StringOf', @UserType OUT, 'results[i].result.actor.userType'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsRichText OUT, 'results[i].result.body.isRichText'
        EXEC sp_OAMethod @jResp, 'StringOf', @Text OUT, 'results[i].result.body.text'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsBookmarkedByCurrentUser OUT, 'results[i].result.capabilities.bookmarks.isBookmarkedByCurrentUser'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsLikedByCurrentUser OUT, 'results[i].result.capabilities.chatterLikes.isLikedByCurrentUser'
        EXEC sp_OAMethod @jResp, 'StringOf', @LikesMessage OUT, 'results[i].result.capabilities.chatterLikes.likesMessage'
        EXEC sp_OAMethod @jResp, 'StringOf', @MyLike OUT, 'results[i].result.capabilities.chatterLikes.myLike'
        EXEC sp_OAMethod @jResp, 'IntOf', @CurrentPageToken OUT, 'results[i].result.capabilities.chatterLikes.page.currentPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @CurrentPageUrl OUT, 'results[i].result.capabilities.chatterLikes.page.currentPageUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @NextPageToken OUT, 'results[i].result.capabilities.chatterLikes.page.nextPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @NextPageUrl OUT, 'results[i].result.capabilities.chatterLikes.page.nextPageUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PreviousPageToken OUT, 'results[i].result.capabilities.chatterLikes.page.previousPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @PreviousPageUrl OUT, 'results[i].result.capabilities.chatterLikes.page.previousPageUrl'
        EXEC sp_OAMethod @jResp, 'IntOf', @Total OUT, 'results[i].result.capabilities.chatterLikes.page.total'
        EXEC sp_OAMethod @jResp, 'BoolOf', @CanContextUserUpdateIsClosed OUT, 'results[i].result.capabilities.close.canContextUserUpdateIsClosed'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsClosed OUT, 'results[i].result.capabilities.close.isClosed'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageCurrentPageToken OUT, 'results[i].result.capabilities.comments.page.currentPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageCurrentPageUrl OUT, 'results[i].result.capabilities.comments.page.currentPageUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageNextPageToken OUT, 'results[i].result.capabilities.comments.page.nextPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageNextPageUrl OUT, 'results[i].result.capabilities.comments.page.nextPageUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PagePreviousPageToken OUT, 'results[i].result.capabilities.comments.page.previousPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @PagePreviousPageUrl OUT, 'results[i].result.capabilities.comments.page.previousPageUrl'
        EXEC sp_OAMethod @jResp, 'IntOf', @PageTotal OUT, 'results[i].result.capabilities.comments.page.total'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsEditRestricted OUT, 'results[i].result.capabilities.edit.isEditRestricted'
        EXEC sp_OAMethod @jResp, 'StringOf', @IsEditableByMeUrl OUT, 'results[i].result.capabilities.edit.isEditableByMeUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @LastEditedBy OUT, 'results[i].result.capabilities.edit.lastEditedBy'
        EXEC sp_OAMethod @jResp, 'StringOf', @LastEditedDate OUT, 'results[i].result.capabilities.edit.lastEditedDate'
        EXEC sp_OAMethod @jResp, 'IntOf', @LatestRevision OUT, 'results[i].result.capabilities.edit.latestRevision'
        EXEC sp_OAMethod @jResp, 'StringOf', @RelativeLastEditedDate OUT, 'results[i].result.capabilities.edit.relativeLastEditedDate'
        EXEC sp_OAMethod @jResp, 'IntOf', @Count OUT, 'results[i].result.capabilities.interactions.count'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsMutedByMe OUT, 'results[i].result.capabilities.mute.isMutedByMe'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsReadByMe OUT, 'results[i].result.capabilities.readBy.isReadByMe'
        EXEC sp_OAMethod @jResp, 'StringOf', @LastReadDateByMe OUT, 'results[i].result.capabilities.readBy.lastReadDateByMe'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageCurrentPageToken OUT, 'results[i].result.capabilities.readBy.page.currentPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageCurrentPageUrl OUT, 'results[i].result.capabilities.readBy.page.currentPageUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageNextPageToken OUT, 'results[i].result.capabilities.readBy.page.nextPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @PageNextPageUrl OUT, 'results[i].result.capabilities.readBy.page.nextPageUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PagePreviousPageToken OUT, 'results[i].result.capabilities.readBy.page.previousPageToken'
        EXEC sp_OAMethod @jResp, 'StringOf', @PagePreviousPageUrl OUT, 'results[i].result.capabilities.readBy.page.previousPageUrl'
        EXEC sp_OAMethod @jResp, 'IntOf', @PageTotal OUT, 'results[i].result.capabilities.readBy.page.total'
        EXEC sp_OAMethod @jResp, 'StringOf', @FeedEntityStatus OUT, 'results[i].result.capabilities.status.feedEntityStatus'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsApprovableByMe OUT, 'results[i].result.capabilities.status.isApprovableByMe'
        EXEC sp_OAMethod @jResp, 'BoolOf', @CanAssignTopics OUT, 'results[i].result.capabilities.topics.canAssignTopics'
        EXEC sp_OAMethod @jResp, 'IntOf', @DownVoteCount OUT, 'results[i].result.capabilities.upDownVote.downVoteCount'
        EXEC sp_OAMethod @jResp, 'StringOf', @MyVote OUT, 'results[i].result.capabilities.upDownVote.myVote'
        EXEC sp_OAMethod @jResp, 'IntOf', @UpVoteCount OUT, 'results[i].result.capabilities.upDownVote.upVoteCount'
        EXEC sp_OAMethod @jResp, 'StringOf', @ApplicationName OUT, 'results[i].result.clientInfo.applicationName'
        EXEC sp_OAMethod @jResp, 'StringOf', @ApplicationUrl OUT, 'results[i].result.clientInfo.applicationUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @CreatedDate OUT, 'results[i].result.createdDate'
        EXEC sp_OAMethod @jResp, 'BoolOf', @v_Event OUT, 'results[i].result.event'
        EXEC sp_OAMethod @jResp, 'StringOf', @FeedElementType OUT, 'results[i].result.feedElementType'
        EXEC sp_OAMethod @jResp, 'BoolOf', @HasVerifiedComment OUT, 'results[i].result.hasVerifiedComment'
        EXEC sp_OAMethod @jResp, 'StringOf', @HeaderIsRichText OUT, 'results[i].result.header.isRichText'
        EXEC sp_OAMethod @jResp, 'StringOf', @HeaderText OUT, 'results[i].result.header.text'
        EXEC sp_OAMethod @jResp, 'StringOf', @resultId OUT, 'results[i].result.id'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsDeleteRestricted OUT, 'results[i].result.isDeleteRestricted'
        EXEC sp_OAMethod @jResp, 'BoolOf', @IsSharable OUT, 'results[i].result.isSharable'
        EXEC sp_OAMethod @jResp, 'StringOf', @ModifiedDate OUT, 'results[i].result.modifiedDate'
        EXEC sp_OAMethod @jResp, 'StringOf', @OriginalFeedItem OUT, 'results[i].result.originalFeedItem'
        EXEC sp_OAMethod @jResp, 'StringOf', @OriginalFeedItemActor OUT, 'results[i].result.originalFeedItemActor'
        EXEC sp_OAMethod @jResp, 'StringOf', @Label OUT, 'results[i].result.parent.entityLabel.label'
        EXEC sp_OAMethod @jResp, 'StringOf', @LabelPlural OUT, 'results[i].result.parent.entityLabel.labelPlural'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentId OUT, 'results[i].result.parent.id'
        EXEC sp_OAMethod @jResp, 'StringOf', @MotifColor OUT, 'results[i].result.parent.motif.color'
        EXEC sp_OAMethod @jResp, 'StringOf', @MotifLargeIconUrl OUT, 'results[i].result.parent.motif.largeIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @MotifMediumIconUrl OUT, 'results[i].result.parent.motif.mediumIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @MotifSmallIconUrl OUT, 'results[i].result.parent.motif.smallIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @MotifSvgIconUrl OUT, 'results[i].result.parent.motif.svgIconUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentMySubscription OUT, 'results[i].result.parent.mySubscription'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentName OUT, 'results[i].result.parent.name'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentType OUT, 'results[i].result.parent.type'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentUrl OUT, 'results[i].result.parent.url'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoUrl OUT, 'results[i].result.photoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @RelativeCreatedDate OUT, 'results[i].result.relativeCreatedDate'
        EXEC sp_OAMethod @jResp, 'StringOf', @resultType OUT, 'results[i].result.type'
        EXEC sp_OAMethod @jResp, 'StringOf', @resultUrl OUT, 'results[i].result.url'
        EXEC sp_OAMethod @jResp, 'StringOf', @Visibility OUT, 'results[i].result.visibility'
        EXEC sp_OAMethod @jResp, 'IntOf', @statusCode OUT, 'results[i].statusCode'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentAdditionalLabel OUT, 'results[i].result.parent.additionalLabel'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentCommunityNickname OUT, 'results[i].result.parent.communityNickname'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentCompanyName OUT, 'results[i].result.parent.companyName'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentDisplayName OUT, 'results[i].result.parent.displayName'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentFirstName OUT, 'results[i].result.parent.firstName'
        EXEC sp_OAMethod @jResp, 'BoolOf', @ParentIsActive OUT, 'results[i].result.parent.isActive'
        EXEC sp_OAMethod @jResp, 'BoolOf', @ParentIsInThisCommunity OUT, 'results[i].result.parent.isInThisCommunity'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentLastName OUT, 'results[i].result.parent.lastName'
        EXEC sp_OAMethod @jResp, 'StringOf', @OutOfOfficeMessage OUT, 'results[i].result.parent.outOfOffice.message'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoFullEmailPhotoUrl OUT, 'results[i].result.parent.photo.fullEmailPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoLargePhotoUrl OUT, 'results[i].result.parent.photo.largePhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoMediumPhotoUrl OUT, 'results[i].result.parent.photo.mediumPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoPhotoVersionId OUT, 'results[i].result.parent.photo.photoVersionId'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoSmallPhotoUrl OUT, 'results[i].result.parent.photo.smallPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoStandardEmailPhotoUrl OUT, 'results[i].result.parent.photo.standardEmailPhotoUrl'
        EXEC sp_OAMethod @jResp, 'StringOf', @PhotoUrl OUT, 'results[i].result.parent.photo.url'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentReputation OUT, 'results[i].result.parent.reputation'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentTitle OUT, 'results[i].result.parent.title'
        EXEC sp_OAMethod @jResp, 'StringOf', @ParentUserType OUT, 'results[i].result.parent.userType'
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result.body.messageSegments'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @text OUT, 'results[i].result.body.messageSegments[j].text'
            EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'results[i].result.body.messageSegments[j].type'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result.capabilities.associatedActions.platformActionGroups'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result.capabilities.chatterLikes.page.items'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result.capabilities.comments.page.items'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result.capabilities.readBy.page.items'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result.capabilities.topics.items'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result.header.messageSegments'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @motifColor OUT, 'results[i].result.header.messageSegments[j].motif.color'
            EXEC sp_OAMethod @jResp, 'StringOf', @motifLargeIconUrl OUT, 'results[i].result.header.messageSegments[j].motif.largeIconUrl'
            EXEC sp_OAMethod @jResp, 'StringOf', @motifMediumIconUrl OUT, 'results[i].result.header.messageSegments[j].motif.mediumIconUrl'
            EXEC sp_OAMethod @jResp, 'StringOf', @motifSmallIconUrl OUT, 'results[i].result.header.messageSegments[j].motif.smallIconUrl'
            EXEC sp_OAMethod @jResp, 'StringOf', @motifSvgIconUrl OUT, 'results[i].result.header.messageSegments[j].motif.svgIconUrl'
            EXEC sp_OAMethod @jResp, 'StringOf', @referenceId OUT, 'results[i].result.header.messageSegments[j].reference.id'
            EXEC sp_OAMethod @jResp, 'StringOf', @referenceUrl OUT, 'results[i].result.header.messageSegments[j].reference.url'
            EXEC sp_OAMethod @jResp, 'StringOf', @text OUT, 'results[i].result.header.messageSegments[j].text'
            EXEC sp_OAMethod @jResp, 'StringOf', @v_type OUT, 'results[i].result.header.messageSegments[j].type'
            SELECT @j = @j + 1
          END
        SELECT @j = 0
        EXEC sp_OAMethod @jResp, 'SizeOfArray', @count_j OUT, 'results[i].result'
        WHILE @j < @count_j
          BEGIN
            EXEC sp_OASetProperty @jResp, 'J', @j
            EXEC sp_OAMethod @jResp, 'StringOf', @errorCode OUT, 'results[i].result[j].errorCode'
            EXEC sp_OAMethod @jResp, 'StringOf', @message OUT, 'results[i].result[j].message'
            SELECT @j = @j + 1
          END
        SELECT @i = @i + 1
      END

    EXEC @hr = sp_OADestroy @http
    EXEC @hr = sp_OADestroy @json
    EXEC @hr = sp_OADestroy @sbResponseBody
    EXEC @hr = sp_OADestroy @jResp


END
GO

Curl Command

curl -X POST
	-H "Authorization: Bearer <access_token>"
	-H "Content-Type: application/json"
	-d '{
    "inputs": [
        {
            "richInput": {
                "subjectId": "<USER_GROUP_RECORD_ID>",
                "body": {
                    "messageSegments": [
                        {
                            "type": "Text",
                            "text": "Post Number 1"
                        }
                    ]
                },
                "capabilities": {
                    "files": {
                        "items": [
                            {
                                "id": "<FILE_ID>"
                            }
                        ]
                    }
                },
                "feedElementType": "FeedItem"
            }
        },
        {
            "richInput": {
                "subjectId": "<USER_GROUP_RECORD_ID>",
                "body": {
                    "messageSegments": [
                        {
                            "type": "Text",
                            "text": "Post Number 2"
                        }
                    ]
                },
                "feedElementType": "FeedItem"
            }
        },
        {
            "richInput": {
                "subjectId": "me",
                "body": {
                    "messageSegments": [
                        {
                            "type": "Text",
                            "text": "Post Number 3 with Inline"
                        },
                        {
                            "type": "InlineImage",
                            "fileId": "<FILE_ID>",
                            "altText": "Test Inline"
                        }
                    ]
                },
                "feedElementType": "FeedItem"
            }
        }
    ]
}'
https://domain.com/services/data/v{{version}}/chatter/feed-elements/batch

Postman Collection Item JSON

{
  "name": "Feed Elements, Batch Post",
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    },
    {
      "listen": "test",
      "script": {
        "exec": [
          ""
        ],
        "type": "text/javascript"
      }
    }
  ],
  "request": {
    "method": "POST",
    "header": [
      {
        "key": "Content-Type",
        "value": "application/json"
      }
    ],
    "body": {
      "mode": "raw",
      "raw": "{\n    \"inputs\": [\n        {\n            \"richInput\": {\n                \"subjectId\": \"<USER_GROUP_RECORD_ID>\",\n                \"body\": {\n                    \"messageSegments\": [\n                        {\n                            \"type\": \"Text\",\n                            \"text\": \"Post Number 1\"\n                        }\n                    ]\n                },\n                \"capabilities\": {\n                    \"files\": {\n                        \"items\": [\n                            {\n                                \"id\": \"<FILE_ID>\"\n                            }\n                        ]\n                    }\n                },\n                \"feedElementType\": \"FeedItem\"\n            }\n        },\n        {\n            \"richInput\": {\n                \"subjectId\": \"<USER_GROUP_RECORD_ID>\",\n                \"body\": {\n                    \"messageSegments\": [\n                        {\n                            \"type\": \"Text\",\n                            \"text\": \"Post Number 2\"\n                        }\n                    ]\n                },\n                \"feedElementType\": \"FeedItem\"\n            }\n        },\n        {\n            \"richInput\": {\n                \"subjectId\": \"me\",\n                \"body\": {\n                    \"messageSegments\": [\n                        {\n                            \"type\": \"Text\",\n                            \"text\": \"Post Number 3 with Inline\"\n                        },\n                        {\n                            \"type\": \"InlineImage\",\n                            \"fileId\": \"<FILE_ID>\",\n                            \"altText\": \"Test Inline\"\n                        }\n                    ]\n                },\n                \"feedElementType\": \"FeedItem\"\n            }\n        }\n    ]\n}",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{_endpoint}}/services/data/v{{version}}/chatter/feed-elements/batch",
      "host": [
        "{{_endpoint}}"
      ],
      "path": [
        "services",
        "data",
        "v{{version}}",
        "chatter",
        "feed-elements",
        "batch"
      ]
    },
    "description": "Post a batch of up to 500 feed elements.\n\nhttps://developer.salesforce.com/docs/atlas.en-us.chatterapi.meta/chatterapi/connect_resources_feed_element_batch_post.htm"
  },
  "response": [
    {
      "name": "Successful Feed Elements, Batch Post",
      "originalRequest": {
        "method": "POST",
        "header": [
          {
            "key": "Content-Type",
            "value": "application/json"
          }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n    \"inputs\": [\n        {\n            \"richInput\": {\n                \"subjectId\": \"0012o00003PK8DSAA1\",\n                \"body\": {\n                    \"messageSegments\": [\n                        {\n                            \"type\": \"Text\",\n                            \"text\": \"Post Number 1\"\n                        }\n                    ]\n                },\n                \"feedElementType\": \"FeedItem\"\n            }\n        },\n        {\n            \"richInput\": {\n                \"subjectId\": \"0052o00000DOJ1PAAX\",\n                \"body\": {\n                    \"messageSegments\": [\n                        {\n                            \"type\": \"Text\",\n                            \"text\": \"Post Number 2\"\n                        }\n                    ]\n                },\n                \"feedElementType\": \"FeedItem\"\n            }\n        },\n        {\n            \"richInput\": {\n                \"subjectId\": \"me\",\n                \"body\": {\n                    \"messageSegments\": [\n                        {\n                            \"type\": \"Text\",\n                            \"text\": \"Post Number 3 with Inline\"\n                        },\n                        {\n                            \"type\": \"InlineImage\",\n                            \"fileId\": \"<FILE_ID>\",\n                            \"altText\": \"Test Inline\"\n                        }\n                    ]\n                },\n                \"feedElementType\": \"FeedItem\"\n            }\n        }\n    ]\n}",
          "options": {
            "raw": {
              "language": "json"
            }
          }
        },
        "url": {
          "raw": "{{_endpoint}}/services/data/v{{version}}/chatter/feed-elements/batch",
          "host": [
            "{{_endpoint}}"
          ],
          "path": [
            "services",
            "data",
            "v{{version}}",
            "chatter",
            "feed-elements",
            "batch"
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Date",
          "value": "Wed, 22 Nov 2023 11:11:25 GMT"
        },
        {
          "key": "Strict-Transport-Security",
          "value": "max-age=63072000; includeSubDomains"
        },
        {
          "key": "X-Content-Type-Options",
          "value": "nosniff"
        },
        {
          "key": "X-XSS-Protection",
          "value": "1; mode=block"
        },
        {
          "key": "X-Robots-Tag",
          "value": "none"
        },
        {
          "key": "Cache-Control",
          "value": "no-cache,must-revalidate,max-age=0,no-store,private"
        },
        {
          "key": "Content-Type",
          "value": "application/json;charset=UTF-8"
        },
        {
          "key": "Vary",
          "value": "Accept-Encoding"
        },
        {
          "key": "Content-Encoding",
          "value": "gzip"
        },
        {
          "key": "Transfer-Encoding",
          "value": "chunked"
        }
      ],
      "cookie": [
      ],
      "body": "{\n    \"hasErrors\": true,\n    \"results\": [\n        {\n            \"result\": {\n                \"actor\": {\n                    \"additionalLabel\": null,\n                    \"communityNickname\": \"User1696423780773910041\",\n                    \"companyName\": \"Salesforce\",\n                    \"displayName\": \"Name\",\n                    \"firstName\": \"Firstname\",\n                    \"id\": \"005...\",\n                    \"isActive\": true,\n                    \"isInThisCommunity\": true,\n                    \"lastName\": \"Name\",\n                    \"motif\": {\n                        \"color\": \"1B96FF\",\n                        \"largeIconUrl\": \"/img/icon/profile64.png\",\n                        \"mediumIconUrl\": \"/img/icon/profile32.png\",\n                        \"smallIconUrl\": \"/img/icon/profile16.png\",\n                        \"svgIconUrl\": null\n                    },\n                    \"mySubscription\": null,\n                    \"name\": \"Name\",\n                    \"outOfOffice\": {\n                        \"message\": \"\"\n                    },\n                    \"photo\": {\n                        \"fullEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1\",\n                        \"largePhotoUrl\": \"https://<my_domain>/profilephoto/729.../F\",\n                        \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/729.../M\",\n                        \"photoVersionId\": \"729...\",\n                        \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n                        \"standardEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1\",\n                        \"url\": \"/services/data/v58.0/connect/user-profiles/005.../photo\"\n                    },\n                    \"reputation\": null,\n                    \"title\": null,\n                    \"type\": \"User\",\n                    \"url\": \"/services/data/v58.0/chatter/users/005...\",\n                    \"userType\": \"Internal\"\n                },\n                \"body\": {\n                    \"isRichText\": false,\n                    \"messageSegments\": [\n                        {\n                            \"text\": \"Post Number 1\",\n                            \"type\": \"Text\"\n                        }\n                    ],\n                    \"text\": \"Post Number 1\"\n                },\n                \"capabilities\": {\n                    \"associatedActions\": {\n                        \"platformActionGroups\": []\n                    },\n                    \"bookmarks\": {\n                        \"isBookmarkedByCurrentUser\": false\n                    },\n                    \"chatterLikes\": {\n                        \"isLikedByCurrentUser\": false,\n                        \"likesMessage\": null,\n                        \"myLike\": null,\n                        \"page\": {\n                            \"currentPageToken\": 0,\n                            \"currentPageUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/chatter-likes/items\",\n                            \"items\": [],\n                            \"nextPageToken\": null,\n                            \"nextPageUrl\": null,\n                            \"previousPageToken\": null,\n                            \"previousPageUrl\": null,\n                            \"total\": 0\n                        }\n                    },\n                    \"close\": {\n                        \"canContextUserUpdateIsClosed\": true,\n                        \"isClosed\": false\n                    },\n                    \"comments\": {\n                        \"page\": {\n                            \"currentPageToken\": null,\n                            \"currentPageUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/comments/items\",\n                            \"items\": [],\n                            \"nextPageToken\": null,\n                            \"nextPageUrl\": null,\n                            \"previousPageToken\": null,\n                            \"previousPageUrl\": null,\n                            \"total\": 0\n                        }\n                    },\n                    \"edit\": {\n                        \"isEditRestricted\": false,\n                        \"isEditableByMeUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/edit/is-editable-by-me\",\n                        \"lastEditedBy\": null,\n                        \"lastEditedDate\": null,\n                        \"latestRevision\": 1,\n                        \"relativeLastEditedDate\": null\n                    },\n                    \"interactions\": {\n                        \"count\": 0\n                    },\n                    \"mute\": {\n                        \"isMutedByMe\": false\n                    },\n                    \"readBy\": {\n                        \"isReadByMe\": true,\n                        \"lastReadDateByMe\": \"2023-11-22T11:11:25.000Z\",\n                        \"page\": {\n                            \"currentPageToken\": null,\n                            \"currentPageUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/read-by/items?pageSize=3\",\n                            \"items\": [],\n                            \"nextPageToken\": null,\n                            \"nextPageUrl\": null,\n                            \"previousPageToken\": null,\n                            \"previousPageUrl\": null,\n                            \"total\": 0\n                        }\n                    },\n                    \"status\": {\n                        \"feedEntityStatus\": \"Published\",\n                        \"isApprovableByMe\": true\n                    },\n                    \"topics\": {\n                        \"canAssignTopics\": true,\n                        \"items\": []\n                    },\n                    \"upDownVote\": {\n                        \"downVoteCount\": 0,\n                        \"myVote\": \"None\",\n                        \"upVoteCount\": 0\n                    }\n                },\n                \"clientInfo\": {\n                    \"applicationName\": \"Postman Playground\",\n                    \"applicationUrl\": null\n                },\n                \"createdDate\": \"2023-11-22T11:11:25.000Z\",\n                \"event\": false,\n                \"feedElementType\": \"FeedItem\",\n                \"hasVerifiedComment\": false,\n                \"header\": {\n                    \"isRichText\": null,\n                    \"messageSegments\": [\n                        {\n                            \"motif\": {\n                                \"color\": \"1B96FF\",\n                                \"largeIconUrl\": \"/img/icon/profile64.png\",\n                                \"mediumIconUrl\": \"/img/icon/profile32.png\",\n                                \"smallIconUrl\": \"/img/icon/profile16.png\",\n                                \"svgIconUrl\": null\n                            },\n                            \"reference\": {\n                                \"id\": \"005...\",\n                                \"url\": \"/services/data/v58.0/chatter/users/005...\"\n                            },\n                            \"text\": \"Name\",\n                            \"type\": \"EntityLink\"\n                        }\n                    ],\n                    \"text\": \"Name\"\n                },\n                \"id\": \"0D5...\",\n                \"isDeleteRestricted\": false,\n                \"isSharable\": false,\n                \"modifiedDate\": \"2023-11-22T11:11:25.000Z\",\n                \"originalFeedItem\": null,\n                \"originalFeedItemActor\": null,\n                \"parent\": {\n                    \"entityLabel\": {\n                        \"label\": \"Account\",\n                        \"labelPlural\": \"Accounts\"\n                    },\n                    \"id\": \"001...\",\n                    \"motif\": {\n                        \"color\": \"5867E8\",\n                        \"largeIconUrl\": \"/img/icon/accounts64.png\",\n                        \"mediumIconUrl\": \"/img/icon/accounts32.png\",\n                        \"smallIconUrl\": \"/img/icon/accounts16.png\",\n                        \"svgIconUrl\": null\n                    },\n                    \"mySubscription\": null,\n                    \"name\": \"Burlington Textiles Corp of America\",\n                    \"type\": \"Account\",\n                    \"url\": \"/services/data/v58.0/chatter/records/001...\"\n                },\n                \"photoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n                \"relativeCreatedDate\": \"Just now\",\n                \"type\": \"TextPost\",\n                \"url\": \"/services/data/v58.0/chatter/feed-elements/0D5...\",\n                \"visibility\": \"InternalUsers\"\n            },\n            \"statusCode\": 201\n        },\n        {\n            \"result\": {\n                \"actor\": {\n                    \"additionalLabel\": null,\n                    \"communityNickname\": \"User1696423780773910041\",\n                    \"companyName\": \"Salesforce\",\n                    \"displayName\": \"Name\",\n                    \"firstName\": \"Firstname\",\n                    \"id\": \"005...\",\n                    \"isActive\": true,\n                    \"isInThisCommunity\": true,\n                    \"lastName\": \"Name\",\n                    \"motif\": {\n                        \"color\": \"1B96FF\",\n                        \"largeIconUrl\": \"/img/icon/profile64.png\",\n                        \"mediumIconUrl\": \"/img/icon/profile32.png\",\n                        \"smallIconUrl\": \"/img/icon/profile16.png\",\n                        \"svgIconUrl\": null\n                    },\n                    \"mySubscription\": null,\n                    \"name\": \"Name\",\n                    \"outOfOffice\": {\n                        \"message\": \"\"\n                    },\n                    \"photo\": {\n                        \"fullEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1\",\n                        \"largePhotoUrl\": \"https://<my_domain>/profilephoto/729.../F\",\n                        \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/729.../M\",\n                        \"photoVersionId\": \"729...\",\n                        \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n                        \"standardEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1\",\n                        \"url\": \"/services/data/v58.0/connect/user-profiles/005.../photo\"\n                    },\n                    \"reputation\": null,\n                    \"title\": null,\n                    \"type\": \"User\",\n                    \"url\": \"/services/data/v58.0/chatter/users/005...\",\n                    \"userType\": \"Internal\"\n                },\n                \"body\": {\n                    \"isRichText\": false,\n                    \"messageSegments\": [\n                        {\n                            \"text\": \"Post Number 2\",\n                            \"type\": \"Text\"\n                        }\n                    ],\n                    \"text\": \"Post Number 2\"\n                },\n                \"capabilities\": {\n                    \"associatedActions\": {\n                        \"platformActionGroups\": []\n                    },\n                    \"bookmarks\": {\n                        \"isBookmarkedByCurrentUser\": false\n                    },\n                    \"chatterLikes\": {\n                        \"isLikedByCurrentUser\": false,\n                        \"likesMessage\": null,\n                        \"myLike\": null,\n                        \"page\": {\n                            \"currentPageToken\": 0,\n                            \"currentPageUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/chatter-likes/items\",\n                            \"items\": [],\n                            \"nextPageToken\": null,\n                            \"nextPageUrl\": null,\n                            \"previousPageToken\": null,\n                            \"previousPageUrl\": null,\n                            \"total\": 0\n                        }\n                    },\n                    \"close\": {\n                        \"canContextUserUpdateIsClosed\": true,\n                        \"isClosed\": false\n                    },\n                    \"comments\": {\n                        \"page\": {\n                            \"currentPageToken\": null,\n                            \"currentPageUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/comments/items\",\n                            \"items\": [],\n                            \"nextPageToken\": null,\n                            \"nextPageUrl\": null,\n                            \"previousPageToken\": null,\n                            \"previousPageUrl\": null,\n                            \"total\": 0\n                        }\n                    },\n                    \"edit\": {\n                        \"isEditRestricted\": false,\n                        \"isEditableByMeUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/edit/is-editable-by-me\",\n                        \"lastEditedBy\": null,\n                        \"lastEditedDate\": null,\n                        \"latestRevision\": 1,\n                        \"relativeLastEditedDate\": null\n                    },\n                    \"interactions\": {\n                        \"count\": 0\n                    },\n                    \"mute\": {\n                        \"isMutedByMe\": false\n                    },\n                    \"readBy\": {\n                        \"isReadByMe\": true,\n                        \"lastReadDateByMe\": \"2023-11-22T11:11:25.000Z\",\n                        \"page\": {\n                            \"currentPageToken\": null,\n                            \"currentPageUrl\": \"/services/data/v58.0/chatter/feed-elements/0D5.../capabilities/read-by/items?pageSize=3\",\n                            \"items\": [],\n                            \"nextPageToken\": null,\n                            \"nextPageUrl\": null,\n                            \"previousPageToken\": null,\n                            \"previousPageUrl\": null,\n                            \"total\": 0\n                        }\n                    },\n                    \"status\": {\n                        \"feedEntityStatus\": \"Published\",\n                        \"isApprovableByMe\": true\n                    },\n                    \"topics\": {\n                        \"canAssignTopics\": true,\n                        \"items\": []\n                    },\n                    \"upDownVote\": {\n                        \"downVoteCount\": 0,\n                        \"myVote\": \"None\",\n                        \"upVoteCount\": 0\n                    }\n                },\n                \"clientInfo\": {\n                    \"applicationName\": \"Postman Playground\",\n                    \"applicationUrl\": null\n                },\n                \"createdDate\": \"2023-11-22T11:11:25.000Z\",\n                \"event\": false,\n                \"feedElementType\": \"FeedItem\",\n                \"hasVerifiedComment\": false,\n                \"header\": {\n                    \"isRichText\": null,\n                    \"messageSegments\": [\n                        {\n                            \"motif\": {\n                                \"color\": \"1B96FF\",\n                                \"largeIconUrl\": \"/img/icon/profile64.png\",\n                                \"mediumIconUrl\": \"/img/icon/profile32.png\",\n                                \"smallIconUrl\": \"/img/icon/profile16.png\",\n                                \"svgIconUrl\": null\n                            },\n                            \"reference\": {\n                                \"id\": \"005...\",\n                                \"url\": \"/services/data/v58.0/chatter/users/005...\"\n                            },\n                            \"text\": \"Name\",\n                            \"type\": \"EntityLink\"\n                        }\n                    ],\n                    \"text\": \"Name\"\n                },\n                \"id\": \"0D5...\",\n                \"isDeleteRestricted\": false,\n                \"isSharable\": true,\n                \"modifiedDate\": \"2023-11-22T11:11:25.000Z\",\n                \"originalFeedItem\": null,\n                \"originalFeedItemActor\": null,\n                \"parent\": {\n                    \"additionalLabel\": null,\n                    \"communityNickname\": \"User1696423780773910041\",\n                    \"companyName\": \"Salesforce\",\n                    \"displayName\": \"Name\",\n                    \"firstName\": \"Firstname\",\n                    \"id\": \"005...\",\n                    \"isActive\": true,\n                    \"isInThisCommunity\": true,\n                    \"lastName\": \"Name\",\n                    \"motif\": {\n                        \"color\": \"1B96FF\",\n                        \"largeIconUrl\": \"/img/icon/profile64.png\",\n                        \"mediumIconUrl\": \"/img/icon/profile32.png\",\n                        \"smallIconUrl\": \"/img/icon/profile16.png\",\n                        \"svgIconUrl\": null\n                    },\n                    \"mySubscription\": null,\n                    \"name\": \"Name\",\n                    \"outOfOffice\": {\n                        \"message\": \"\"\n                    },\n                    \"photo\": {\n                        \"fullEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0IogXzXAXaYKJnuWCNQmXymRq?fromEmail=1\",\n                        \"largePhotoUrl\": \"https://<my_domain>/profilephoto/729.../F\",\n                        \"mediumPhotoUrl\": \"https://<my_domain>/profilephoto/729.../M\",\n                        \"photoVersionId\": \"729...\",\n                        \"smallPhotoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n                        \"standardEmailPhotoUrl\": \"https://<my_domain>/ncsphoto/1wsMlOd3tVC7boygqBO8wMT9KzA0D6tqzpbs-Uw0Ioi-dtynkoFWsl46as__TDFU?fromEmail=1\",\n                        \"url\": \"/services/data/v58.0/connect/user-profiles/005.../photo\"\n                    },\n                    \"reputation\": null,\n                    \"title\": null,\n                    \"type\": \"User\",\n                    \"url\": \"/services/data/v58.0/chatter/users/005...\",\n                    \"userType\": \"Internal\"\n                },\n                \"photoUrl\": \"https://<my_domain>/profilephoto/729.../T\",\n                \"relativeCreatedDate\": \"Just now\",\n                \"type\": \"TextPost\",\n                \"url\": \"/services/data/v58.0/chatter/feed-elements/0D5...\",\n                \"visibility\": \"AllUsers\"\n            },\n            \"statusCode\": 201\n        },\n        {\n            \"result\": [\n                {\n                    \"errorCode\": \"INVALID_MARKUP\",\n                    \"message\": \"Error while parsing Rich Text Content: The value of attribute &quot;src&quot; associated with an element type &quot;img&quot; must not contain the &#39;&lt;&#39; character.\"\n                }\n            ],\n            \"statusCode\": 400\n        }\n    ]\n}"
    }
  ]
}