cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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 @Anonymous,

 

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 @Anonymous,

 

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.

Anonymous
Not applicable

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 @Anonymous,

 

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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (4,239)