cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LC_Igor
New Member

Intercom to Slack notifiction

Hi,

 

I'm trying to get Intercom to Slack notification and here's a thing.

 

I'm doing the following: 

 

On @{triggerBody()?['created_at']}a new chat was triggered. @{triggerBody()?['assignee']?['id']}was assigned for the chat. You can followup here: @{triggerBody()?['conversation_message']?['url']}

 

But it's never quite able to show (get?) that URL for the chat. 

 

Well, I've tried to follow up on that and just send an email with a chat URL (step 3) - nope, nothing happens. I do receive an empty email with no chat link what so ever. 

 

Also, is there a way to automatically change assignee ID (which is a number) to an actual name of the person? 

 

In slack it looks like this:

On 2019-11-12T09:55:32.000Za new chat was triggered.  3441315 was assigned for the chat. You can followup here:

 

As you can see having a number instead of the name and no link to follow up renders all this quite useless...

 

Any suggestions what I might be doing wrong? 

 

I. 

1 ACCEPTED SOLUTION

Accepted Solutions
v-litu-msft
Community Support
Community Support

Hi @LC_Igor,

 

You can create a Parse JSON action at the bottom of trigger. Put the trigger body into the *Content then use the following Schema into it:

{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "created": {
            "type": "integer"
        },
        "timestamp": {
            "type": "integer"
        },
        "name": {
            "type": "string"
        },
        "title": {
            "type": "string"
        },
        "mimetype": {
            "type": "string"
        },
        "filetype": {
            "type": "string"
        },
        "pretty_type": {
            "type": "string"
        },
        "user": {
            "type": "string"
        },
        "editable": {
            "type": "boolean"
        },
        "size": {
            "type": "integer"
        },
        "mode": {
            "type": "string"
        },
        "is_external": {
            "type": "boolean"
        },
        "external_type": {
            "type": "string"
        },
        "is_public": {
            "type": "boolean"
        },
        "public_url_shared": {
            "type": "boolean"
        },
        "display_as_bot": {
            "type": "boolean"
        },
        "username": {
            "type": "string"
        },
        "url_private": {
            "type": "string"
        },
        "url_private_download": {
            "type": "string"
        },
        "thumb_pdf": {
            "type": "string"
        },
        "thumb_pdf_w": {
            "type": "integer"
        },
        "thumb_pdf_h": {
            "type": "integer"
        },
        "permalink": {
            "type": "string"
        },
        "permalink_public": {
            "type": "string"
        },
        "channels": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "groups": {
            "type": "array"
        },
        "ims": {
            "type": "array"
        },
        "comments_count": {
            "type": "integer"
        }
    }
}

Annotation 2019-11-13 105626.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-litu-msft
Community Support
Community Support

Hi @LC_Igor,

 

You can create a Parse JSON action at the bottom of trigger. Put the trigger body into the *Content then use the following Schema into it:

{
    "type": "object",
    "properties": {
        "id": {
            "type": "string"
        },
        "created": {
            "type": "integer"
        },
        "timestamp": {
            "type": "integer"
        },
        "name": {
            "type": "string"
        },
        "title": {
            "type": "string"
        },
        "mimetype": {
            "type": "string"
        },
        "filetype": {
            "type": "string"
        },
        "pretty_type": {
            "type": "string"
        },
        "user": {
            "type": "string"
        },
        "editable": {
            "type": "boolean"
        },
        "size": {
            "type": "integer"
        },
        "mode": {
            "type": "string"
        },
        "is_external": {
            "type": "boolean"
        },
        "external_type": {
            "type": "string"
        },
        "is_public": {
            "type": "boolean"
        },
        "public_url_shared": {
            "type": "boolean"
        },
        "display_as_bot": {
            "type": "boolean"
        },
        "username": {
            "type": "string"
        },
        "url_private": {
            "type": "string"
        },
        "url_private_download": {
            "type": "string"
        },
        "thumb_pdf": {
            "type": "string"
        },
        "thumb_pdf_w": {
            "type": "integer"
        },
        "thumb_pdf_h": {
            "type": "integer"
        },
        "permalink": {
            "type": "string"
        },
        "permalink_public": {
            "type": "string"
        },
        "channels": {
            "type": "array",
            "items": {
                "type": "string"
            }
        },
        "groups": {
            "type": "array"
        },
        "ims": {
            "type": "array"
        },
        "comments_count": {
            "type": "integer"
        }
    }
}

Annotation 2019-11-13 105626.png

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Thanks for a hint! Yet this should do what exactly? 

I've did as instructed and conducted a test based on the previous runs, it got hanged on the "when a file is created" part and haven't got to the json part at all... 

 

In the end I got the same line as before: "On 2019-11-12T09:55:32.000Za new chat was triggered.  3441315was assigned for the chat. You can followup here:"

 Hi @LC_Igor,

 

Could you please share screenshots of your Flow configuration and run result?

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,149)