Discover the game-changing impact of Generative AI<\/strong> on customer service in this power-packed webinar.<\/p> Here\u2019s what you need to know about the session -<\/p> Agenda -<\/strong><\/u><\/p> Generative AI\u2019s impact on customer service and support<\/p> Quick demo on leveraging AI for enhanced customer service functions<\/p> Q&A session<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/section> \u00a0<\/p> What areas we will delve into -<\/u><\/strong><\/p> Understand how Generative AI is transforming customer service<\/p> Discover how AI enhances self-service and delivers quick resolutions, freeing up agent time<\/p> Explore Freshworks' newly launched Freddy AI, powered by Generative AI, for automating repetitive tasks and maximising productivity<\/p> \u00a0 Learn how Freddy AI enables proactive issue identification and timely decision-making for business\u00a0growth<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/section> \u00a0<\/p> Date - Aug 8, 2023<\/strong><\/p> Time - 9:00 AM PST | 9:30 PM IST<\/strong><\/p> \u00a0RSVP NOW !!<\/strong><\/a><\/p>","author":{"id":43548,"url":"\/members\/kamakshi-v-43548","name":"Kamakshi V","avatar":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/icon\/200x200\/e865e8ef-3f5e-4151-899f-7677e48d6699.png","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"icon":"3e164ae1-0fbf-444b-9d4f-3c98888e1158.png","iconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/3e164ae1-0fbf-444b-9d4f-3c98888e1158.png","avatarIcon":"01224d04-fc75-4c7d-bbf1-c7cb6591a3b4_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/01224d04-fc75-4c7d-bbf1-c7cb6591a3b4_thumb.png","name":"Community Manager"},"userLevel":3},"type":"Webinar","url":"https:\/\/community.freshworks.com\/events\/unleash-ai-cx-gets-more-personalized-predictive-and-optimized-227","image":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/125f6bf9-d0ed-43bb-be49-e160f57f0c14_thumb.jpg","location":"","startsAt":1691510400,"endsAt":1691514000,"contentType":"event","attendees":[],"attendeeCount":0,"isLoggedInUserAttendee":false,"createdAt":"1690397491"},"config":{"selectedTopic":{"id":227,"title":"Unleash AI: CX gets more Personalized, Predictive, and Optimized","content":" Hello Everyone!<\/strong><\/p> Discover the game-changing impact of Generative AI<\/strong> on customer service in this power-packed webinar.<\/p> Here\u2019s what you need to know about the session -<\/p> Agenda -<\/strong><\/u><\/p> Generative AI\u2019s impact on customer service and support<\/p> Quick demo on leveraging AI for enhanced customer service functions<\/p> Q&A session<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/section> \u00a0<\/p> What areas we will delve into -<\/u><\/strong><\/p> Understand how Generative AI is transforming customer service<\/p> Discover how AI enhances self-service and delivers quick resolutions, freeing up agent time<\/p> Explore Freshworks' newly launched Freddy AI, powered by Generative AI, for automating repetitive tasks and maximising productivity<\/p> \u00a0 Learn how Freddy AI enables proactive issue identification and timely decision-making for business\u00a0growth<\/p><\/div><\/div><\/div><\/div><\/div><\/div><\/section> \u00a0<\/p> Using Freshdesk But when sending the request, axios is setting\u00a0 Note: All the variables have correct values.<\/p> Any help is appreciated. Hi Everyone, But when sending the request, axios is setting\u00a0 Note: All the variables have correct values.<\/p> Any help is appreciated. Hi Everyone, But when sending the request, axios is setting\u00a0 Note: All the variables have correct values.<\/p> Any help is appreciated. And My JS Code is(app\/scripts\/newTicket.js):<\/p> I am using localstore to save an object and then fetching it using the Id: \u201cNew_Form\u201d. It contains \u201cruleName\u201d array of all the object name which I have to use. Then I am iterating through all ruleName array, for each RuleName I am doing:<\/p> Note: The condition array is array of arrays. Example:<\/p> I have also tried accessing the parent DOM using\u00a0 Hi, And My JS Code is(app\/scripts\/newTicket.js):<\/p> I am using localstore to save an object and then fetching it using the Id: \u201cNew_Form\u201d. It contains \u201cruleName\u201d array of all the object name which I have to use. Then I am iterating through all ruleName array, for each RuleName I am doing:<\/p> Note: The condition array is array of arrays. Example:<\/p> I have also tried accessing the parent DOM using\u00a0 Hi, And My JS Code is(app\/scripts\/newTicket.js):<\/p> I am using localstore to save an object and then fetching it using the Id: \u201cNew_Form\u201d. It contains \u201cruleName\u201d array of all the object name which I have to use. Then I am iterating through all ruleName array, for each RuleName I am doing:<\/p> Note: The condition array is array of arrays. Example:<\/p> I have also tried accessing the parent DOM using\u00a0 When i try to delete\u00a0Atlassian JIRA Legacy from our freshdesk, recive error 500<\/p>","url":"\/apps-and-marketplace-integrations-11358\/cant-delete-application-freshdesk-30888?postid=77589#post77589","creationDate":"2023-05-11T11:20:45+0000","relativeCreationDate":"2 months ago"},"numberOfViews":16,"contentType":"question","featuredImage":"","publicLabel":"","category":{"url":"\/using-freshdesk-11320","categoryId":11320,"title":"Using Freshdesk","metaRobots":"index, follow","type":0},"lastPostId":"78932"},"isActivityPage":null,"showUnsubscribeBtn":null,"attachmentCdn":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/","isGuest":true,"csrfToken":"c4cb3e19ebbda682d76d0e2a8449fbc7f5180ee2","hideCategoryMetadata":false,"phrases":{"Forum":{"thread.unsubscribe":"Unsubscribe","vraag":"Question","beantwoord":"Solved","topic.list.metadata.asked.in":"asked in","topic.list.metadata.published.in":"published in","topic.list.metadata.shared.in":"shared in","topic.list.metadata.posted.in":"posted in"}}}">
Free App:\u00a0\/\/m.teammarx.com\/apps\/freshdesk\/automerge\/<\/a><\/p> Paid App:\u00a0\/\/m.teammarx.com\/apps\/freshdesk\/automerger\/<\/a>\u00a0- Paid app has subject matching option to merge the ticket<\/p> \u00a0<\/p> Cheers<\/p>","url":"\/apps-and-marketplace-integrations-11358\/any-posibility-to-auto-merge-duplicate-tickets-31074?postid=78058#post78058","creationDate":"2023-05-22T10:51:59+0000","relativeCreationDate":"2 months ago"},"lastReply":{"id":78058,"author":{"id":34679,"url":"\/members\/vinothkumar-manoharan-34679","name":"vinothkumar.manoharan","avatar":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/icon\/200x200\/d53495d4-b334-4fc0-8970-77e0f3e24d4d.png","userTitle":"Skilled Expert","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"1614c0e0-6203-4731-9f87-f539848f3810_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/1614c0e0-6203-4731-9f87-f539848f3810_thumb.png","name":"Skilled Expert"},"userLevel":3},"content":" Free App:\u00a0\/\/m.teammarx.com\/apps\/freshdesk\/automerge\/<\/a><\/p> Currently, Freshdesk only supports Instagram comments and hasn\u2019t integrated with DMs yet.<\/p> The question is why?\u00a0<\/p> This is really important for customers, for me is a \u201cmust have\u201d and now I\u2019m thinking in moving to another platform because i really need to have all channels in one place.\u00a0<\/p> \u00a0<\/p> Please Freshdesk team, let us know if you have this feature in short term backlog<\/p> Thanks in advance<\/p>","url":"\/apps-and-marketplace-integrations-11358\/why-freshdesk-doesnt-support-dm-s-instagram-integration-as-other-competitors-already-does-22999?postid=58078#post58078","creationDate":"2021-12-14T19:08:29+0000","relativeCreationDate":"1 year ago"},"isTopicUnread":true,"privateId":1928,"id":22999,"type":"post","hasCurrentUserLiked":false,"isSticky":false,"features":[{"id":"isQuestion","label":"vraag"}],"forum":{"id":11358,"isIdeation":false,"url":"\/apps-and-marketplace-integrations-11358","title":"Apps and Marketplace Integrations","description":"Using Freshdesk"},"url":"\/apps-and-marketplace-integrations-11358\/why-freshdesk-doesnt-support-dm-s-instagram-integration-as-other-competitors-already-does-22999","title":"Why Freshdesk doesnt support DM's instagram integration as other competitors already does?","lastPost":{"id":77699,"author":{"id":37940,"url":"\/members\/matt-absolute-37940","name":"matt absolute","avatar":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/icon\/200x200\/14b268fb-14c8-4d4e-994e-42fdebc2ceb2.png","userTitle":"Apprentice","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":" WHERE IS THIS UP TO PLEASE FRESHWORKS\u00a0<\/p>","url":"\/apps-and-marketplace-integrations-11358\/why-freshdesk-doesnt-support-dm-s-instagram-integration-as-other-competitors-already-does-22999?postid=77699#post77699","creationDate":"2023-05-15T08:17:09+0000","relativeCreationDate":"2 months ago"},"lastReply":{"id":77699,"author":{"id":37940,"url":"\/members\/matt-absolute-37940","name":"matt absolute","avatar":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/icon\/200x200\/14b268fb-14c8-4d4e-994e-42fdebc2ceb2.png","userTitle":"Apprentice","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":" WHERE IS THIS UP TO PLEASE FRESHWORKS\u00a0<\/p>","url":"\/apps-and-marketplace-integrations-11358\/why-freshdesk-doesnt-support-dm-s-instagram-integration-as-other-competitors-already-does-22999?postid=77699#post77699","creationDate":"2023-05-15T08:17:09+0000","relativeCreationDate":"2 months ago"},"numberOfUnreadReplies":0,"numberOfReplies":11,"numberOfLikes":2,"relevantPost":{"id":58078,"author":{"id":34192,"url":"\/members\/andreszarzar-34192","name":"andreszarzar","avatar":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/icon\/200x200\/4db90842-de89-4f74-ac7d-3fa65e89640f.png","userTitle":"Apprentice","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":" Instagram released its Messenger API to businesses on June 2, 2021. With this release, omnichannel customer support tools like Zendesk, DelightChat, Reamaze, and many others now integrate Instagram DM support directly into their products.<\/p> Currently, Freshdesk only supports Instagram comments and hasn\u2019t integrated with DMs yet.<\/p> The question is why?\u00a0<\/p> This is really important for customers, for me is a \u201cmust have\u201d and now I\u2019m thinking in moving to another platform because i really need to have all channels in one place.\u00a0<\/p> \u00a0<\/p> Please Freshdesk team, let us know if you have this feature in short term backlog<\/p> Thanks in advance<\/p>","url":"\/apps-and-marketplace-integrations-11358\/why-freshdesk-doesnt-support-dm-s-instagram-integration-as-other-competitors-already-does-22999?postid=58078#post58078","creationDate":"2021-12-14T19:08:29+0000","relativeCreationDate":"1 year ago"},"numberOfViews":201,"contentType":"question","featuredImage":"","publicLabel":"","category":{"url":"\/using-freshdesk-11320","categoryId":11320,"title":"Using Freshdesk","metaRobots":"index, follow","type":0},"lastPostId":"77699"},"isActivityPage":null,"showUnsubscribeBtn":null,"attachmentCdn":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/","isGuest":true,"csrfToken":"c4cb3e19ebbda682d76d0e2a8449fbc7f5180ee2","hideCategoryMetadata":false,"phrases":{"Forum":{"thread.unsubscribe":"Unsubscribe","vraag":"Question","beantwoord":"Solved","topic.list.metadata.asked.in":"asked in","topic.list.metadata.published.in":"published in","topic.list.metadata.shared.in":"shared in","topic.list.metadata.posted.in":"posted in"}}}">
Hi \u00a0<\/p> Greetings from Freshdesk community! Here is a document for you to refer on integrating with nodejs-https:\/\/developers.freshdesk.com\/v2\/docs\/quick-start\/<\/a><\/p> \u00a0<\/p> If this does not help, please DM me the directly with some screenshots or a video grab to troubleshoot.<\/p> \u00a0<\/p> Cheers, \u00a0<\/p> Thank you\u00a0<\/p>","url":"\/apps-and-marketplace-integrations-11358\/instagram-direct-28327?postid=72298#post72298","creationDate":"2023-02-13T06:54:49+0000","relativeCreationDate":"5 months ago"},"isTopicUnread":true,"privateId":18461,"id":28327,"type":"post","hasCurrentUserLiked":false,"isSticky":false,"features":[],"forum":{"id":11358,"isIdeation":false,"url":"\/apps-and-marketplace-integrations-11358","title":"Apps and Marketplace Integrations","description":"Using Freshdesk"},"url":"\/apps-and-marketplace-integrations-11358\/instagram-direct-28327","title":"Instagram direct","lastPost":{"id":77136,"author":{"id":42888,"url":"\/members\/jimandrew412-42888","name":"jimandrew412","avatar":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/icon\/200x200\/51f234fb-9c51-4762-9cd3-a7338cda30dd.png","userTitle":"Community Debut","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"20edde18-3c29-4bcc-ad18-6fe21537104e_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/20edde18-3c29-4bcc-ad18-6fe21537104e_thumb.png","name":"Community Debut"},"userLevel":0},"content":" Hi there,<\/p> Hi I understand that you may be looking to embed a video link within a solution article page on Freshdesk. If this is the case, may I suggest using the following option:<\/p> Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password. Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes. Sorry, our virus scanner detected that this file isn't safe to download.
Apps and Marketplace Integrations
68 Topics
I am making Serverless App with SMIs. I calling a third-party API using axios.post and setting the header to<\/p>headers: {
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Authorization: `Basic ${base64Encode}`,
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 'Content-Type': 'application\/x-www-form-urlencoded'
}<\/code><\/p>'Content-type'<\/code>\u00a0to\u00a0
'application\/json'<\/code>.
Here is my code for calling the third-party API in server.js:<\/p>let base64Encode = buffer.Buffer.from(data.iparams.client_id + \":\" + data.iparams.client_secret).toString('base64');
let accTknBody = {
\u00a0 grant_type: \"urn:ietf:params:oauth:grant-type:jwt-bearer\",
\u00a0 assertion: String(data.iparams.jwtToken)
}
let response = await axios.post(data.iparams.server_url + '\/restapi\/oauth\/token', accTknBody, {
\u00a0 headers: {
\u00a0 \u00a0 Authorization: `Basic ${base64Encode}`,
\u00a0 \u00a0 'Content-Type': 'application\/x-www-form-urlencoded'
\u00a0 }
});<\/code><\/p>
Thanks<\/p>","url":"\/apps-and-marketplace-integrations-11358\/axios-request-not-setting-provided-headers-32486?postid=80903#post80903","creationDate":"2023-07-28T14:13:20+0000","relativeCreationDate":"10 days ago"},"isTopicUnread":true,"privateId":6571,"id":32486,"type":"post","hasCurrentUserLiked":false,"isSticky":false,"features":[{"id":"isQuestion","label":"vraag"}],"forum":{"id":11358,"isIdeation":false,"url":"\/apps-and-marketplace-integrations-11358","title":"Apps and Marketplace Integrations","description":"Using Freshdesk"},"url":"\/apps-and-marketplace-integrations-11358\/axios-request-not-setting-provided-headers-32486","title":"Axios request not setting provided headers","lastPost":{"id":80903,"author":{"id":44945,"url":"\/members\/aryan-31-44945","name":"Aryan-31","avatar":"","userTitle":"Apprentice","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":"
I am making Serverless App with SMIs. I calling a third-party API using axios.post and setting the header to<\/p>headers: {
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Authorization: `Basic ${base64Encode}`,
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 'Content-Type': 'application\/x-www-form-urlencoded'
}<\/code><\/p>'Content-type'<\/code>\u00a0to\u00a0
'application\/json'<\/code>.
Here is my code for calling the third-party API in server.js:<\/p>let base64Encode = buffer.Buffer.from(data.iparams.client_id + \":\" + data.iparams.client_secret).toString('base64');
let accTknBody = {
\u00a0 grant_type: \"urn:ietf:params:oauth:grant-type:jwt-bearer\",
\u00a0 assertion: String(data.iparams.jwtToken)
}
let response = await axios.post(data.iparams.server_url + '\/restapi\/oauth\/token', accTknBody, {
\u00a0 headers: {
\u00a0 \u00a0 Authorization: `Basic ${base64Encode}`,
\u00a0 \u00a0 'Content-Type': 'application\/x-www-form-urlencoded'
\u00a0 }
});<\/code><\/p>
Thanks<\/p>","url":"\/apps-and-marketplace-integrations-11358\/axios-request-not-setting-provided-headers-32486?postid=80903#post80903","creationDate":"2023-07-28T14:13:20+0000","relativeCreationDate":"10 days ago"},"numberOfUnreadReplies":0,"numberOfReplies":0,"numberOfLikes":0,"relevantPost":{"id":80903,"author":{"id":44945,"url":"\/members\/aryan-31-44945","name":"Aryan-31","avatar":"","userTitle":"Apprentice","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":"
I am making Serverless App with SMIs. I calling a third-party API using axios.post and setting the header to<\/p>headers: {
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 Authorization: `Basic ${base64Encode}`,
\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 'Content-Type': 'application\/x-www-form-urlencoded'
}<\/code><\/p>'Content-type'<\/code>\u00a0to\u00a0
'application\/json'<\/code>.
Here is my code for calling the third-party API in server.js:<\/p>let base64Encode = buffer.Buffer.from(data.iparams.client_id + \":\" + data.iparams.client_secret).toString('base64');
let accTknBody = {
\u00a0 grant_type: \"urn:ietf:params:oauth:grant-type:jwt-bearer\",
\u00a0 assertion: String(data.iparams.jwtToken)
}
let response = await axios.post(data.iparams.server_url + '\/restapi\/oauth\/token', accTknBody, {
\u00a0 headers: {
\u00a0 \u00a0 Authorization: `Basic ${base64Encode}`,
\u00a0 \u00a0 'Content-Type': 'application\/x-www-form-urlencoded'
\u00a0 }
});<\/code><\/p>
Thanks<\/p>","url":"\/apps-and-marketplace-integrations-11358\/axios-request-not-setting-provided-headers-32486?postid=80903#post80903","creationDate":"2023-07-28T14:13:20+0000","relativeCreationDate":"10 days ago"},"numberOfViews":6,"contentType":"question","featuredImage":"","publicLabel":"","category":{"url":"\/using-freshdesk-11320","categoryId":11320,"title":"Using Freshdesk","metaRobots":"index, follow","type":0},"lastPostId":"80903"},"isActivityPage":null,"showUnsubscribeBtn":null,"attachmentCdn":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/","isGuest":true,"csrfToken":"c4cb3e19ebbda682d76d0e2a8449fbc7f5180ee2","hideCategoryMetadata":false,"phrases":{"Forum":{"thread.unsubscribe":"Unsubscribe","vraag":"Question","beantwoord":"Solved","topic.list.metadata.asked.in":"asked in","topic.list.metadata.published.in":"published in","topic.list.metadata.shared.in":"shared in","topic.list.metadata.posted.in":"posted in"}}}">
I am making an app which runs in new ticket background. When I am trying to access the elements from the new ticket form, I am getting null value for the element as my app is in iframe and the elements I want to access are outside the iframe. Is there any way I can access the elements of the parent DOM inside an iframe without violating CORS policy?
My HTML code is(app\/views\/newTicket.html):<\/p><!DOCTYPE html>
<html lang=\"en\">
<head>
\u00a0\u00a0\u00a0\u00a0<meta charset=\"UTF-8\" \/>
\u00a0\u00a0\u00a0\u00a0<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" \/>
\u00a0\u00a0\u00a0\u00a0<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>
\u00a0\u00a0\u00a0\u00a0<script src=\"{{{appclient}}}\"><\/script>
\u00a0\u00a0\u00a0\u00a0<title>New Ticket Background<\/title>
<\/head>
<body>
\u00a0\u00a0\u00a0\u00a0<script src=\".\/. .\/scripts\/newTicket.js\"><\/script>
<\/body>
<script defer>
\u00a0\u00a0\u00a0\u00a0document.onreadystatechange = function () {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (document.readyState === 'complete') init();
\u00a0\u00a0\u00a0\u00a0};
\u00a0\u00a0\u00a0\u00a0async function init() {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0var client;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client = await app.initialized();
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0await client.events.on('app.activated', async () => {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0await getRules(client);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0});
\u00a0\u00a0\u00a0\u00a0}
<\/script>
<\/html><\/code><\/p>async function getRules(client) {
\u00a0\u00a0\u00a0\u00a0let { ruleName } = await client.db.get(\"New_Form\");
\u00a0\u00a0\u00a0\u00a0for (let i = 0; i < ruleName.length; i++) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let rule = await client.db.get(ruleName[i]);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (!rule.isOn) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0continue
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (rule.condition.length > 0) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for (let j = 0; j < rule.condition.length; j++) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let attributeName = 'data-test-id';
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let attributeValue = rule.condition[j][0].trim().replace(\/\\s\/g, \"_\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let selector = `div[${attributeName}=\"${attributeValue}\" i]`;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let conditionName = document.querySelector(selector); \/\/It is giving null
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0console.log(conditionName);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0\u00a0
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0}
}<\/code><\/p>condition: [[ \u201cSource\u201d, \u201canotherValue\u201d, \u201canotherValue\u201d]]<\/code><\/p>
window.parent.document<\/code>\u00a0but it violates CORS policy.
Any help will be Appreciated.
Thanks<\/p>","url":"\/apps-and-marketplace-integrations-11358\/accessing-html-element-in-new-ticket-background-app-32332?postid=80506#post80506","creationDate":"2023-07-19T17:31:43+0000","relativeCreationDate":"19 days ago"},"isTopicUnread":true,"privateId":6478,"id":32332,"type":"post","hasCurrentUserLiked":false,"isSticky":false,"features":[{"id":"isQuestion","label":"vraag"}],"forum":{"id":11358,"isIdeation":false,"url":"\/apps-and-marketplace-integrations-11358","title":"Apps and Marketplace Integrations","description":"Using Freshdesk"},"url":"\/apps-and-marketplace-integrations-11358\/accessing-html-element-in-new-ticket-background-app-32332","title":"Accessing HTML Element in new ticket background app","lastPost":{"id":80506,"author":{"id":44945,"url":"\/members\/aryan-31-44945","name":"Aryan-31","avatar":"","userTitle":"Apprentice","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":"
I am making an app which runs in new ticket background. When I am trying to access the elements from the new ticket form, I am getting null value for the element as my app is in iframe and the elements I want to access are outside the iframe. Is there any way I can access the elements of the parent DOM inside an iframe without violating CORS policy?
My HTML code is(app\/views\/newTicket.html):<\/p><!DOCTYPE html>
<html lang=\"en\">
<head>
\u00a0\u00a0\u00a0\u00a0<meta charset=\"UTF-8\" \/>
\u00a0\u00a0\u00a0\u00a0<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" \/>
\u00a0\u00a0\u00a0\u00a0<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>
\u00a0\u00a0\u00a0\u00a0<script src=\"{{{appclient}}}\"><\/script>
\u00a0\u00a0\u00a0\u00a0<title>New Ticket Background<\/title>
<\/head>
<body>
\u00a0\u00a0\u00a0\u00a0<script src=\".\/. .\/scripts\/newTicket.js\"><\/script>
<\/body>
<script defer>
\u00a0\u00a0\u00a0\u00a0document.onreadystatechange = function () {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (document.readyState === 'complete') init();
\u00a0\u00a0\u00a0\u00a0};
\u00a0\u00a0\u00a0\u00a0async function init() {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0var client;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client = await app.initialized();
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0await client.events.on('app.activated', async () => {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0await getRules(client);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0});
\u00a0\u00a0\u00a0\u00a0}
<\/script>
<\/html><\/code><\/p>async function getRules(client) {
\u00a0\u00a0\u00a0\u00a0let { ruleName } = await client.db.get(\"New_Form\");
\u00a0\u00a0\u00a0\u00a0for (let i = 0; i < ruleName.length; i++) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let rule = await client.db.get(ruleName[i]);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (!rule.isOn) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0continue
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (rule.condition.length > 0) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for (let j = 0; j < rule.condition.length; j++) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let attributeName = 'data-test-id';
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let attributeValue = rule.condition[j][0].trim().replace(\/\\s\/g, \"_\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let selector = `div[${attributeName}=\"${attributeValue}\" i]`;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let conditionName = document.querySelector(selector); \/\/It is giving null
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0console.log(conditionName);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0\u00a0
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0}
}<\/code><\/p>condition: [[ \u201cSource\u201d, \u201canotherValue\u201d, \u201canotherValue\u201d]]<\/code><\/p>
window.parent.document<\/code>\u00a0but it violates CORS policy.
Any help will be Appreciated.
Thanks<\/p>","url":"\/apps-and-marketplace-integrations-11358\/accessing-html-element-in-new-ticket-background-app-32332?postid=80506#post80506","creationDate":"2023-07-19T17:31:43+0000","relativeCreationDate":"19 days ago"},"numberOfUnreadReplies":0,"numberOfReplies":0,"numberOfLikes":0,"relevantPost":{"id":80506,"author":{"id":44945,"url":"\/members\/aryan-31-44945","name":"Aryan-31","avatar":"","userTitle":"Apprentice","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":"
I am making an app which runs in new ticket background. When I am trying to access the elements from the new ticket form, I am getting null value for the element as my app is in iframe and the elements I want to access are outside the iframe. Is there any way I can access the elements of the parent DOM inside an iframe without violating CORS policy?
My HTML code is(app\/views\/newTicket.html):<\/p><!DOCTYPE html>
<html lang=\"en\">
<head>
\u00a0\u00a0\u00a0\u00a0<meta charset=\"UTF-8\" \/>
\u00a0\u00a0\u00a0\u00a0<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" \/>
\u00a0\u00a0\u00a0\u00a0<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\" \/>
\u00a0\u00a0\u00a0\u00a0<script src=\"{{{appclient}}}\"><\/script>
\u00a0\u00a0\u00a0\u00a0<title>New Ticket Background<\/title>
<\/head>
<body>
\u00a0\u00a0\u00a0\u00a0<script src=\".\/. .\/scripts\/newTicket.js\"><\/script>
<\/body>
<script defer>
\u00a0\u00a0\u00a0\u00a0document.onreadystatechange = function () {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (document.readyState === 'complete') init();
\u00a0\u00a0\u00a0\u00a0};
\u00a0\u00a0\u00a0\u00a0async function init() {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0var client;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0client = await app.initialized();
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0await client.events.on('app.activated', async () => {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0await getRules(client);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0});
\u00a0\u00a0\u00a0\u00a0}
<\/script>
<\/html><\/code><\/p>async function getRules(client) {
\u00a0\u00a0\u00a0\u00a0let { ruleName } = await client.db.get(\"New_Form\");
\u00a0\u00a0\u00a0\u00a0for (let i = 0; i < ruleName.length; i++) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let rule = await client.db.get(ruleName[i]);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (!rule.isOn) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0continue
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if (rule.condition.length > 0) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0for (let j = 0; j < rule.condition.length; j++) {
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let attributeName = 'data-test-id';
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let attributeValue = rule.condition[j][0].trim().replace(\/\\s\/g, \"_\");
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let selector = `div[${attributeName}=\"${attributeValue}\" i]`;
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0let conditionName = document.querySelector(selector); \/\/It is giving null
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0console.log(conditionName);
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}\u00a0\u00a0
\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}
\u00a0\u00a0\u00a0\u00a0}
}<\/code><\/p>condition: [[ \u201cSource\u201d, \u201canotherValue\u201d, \u201canotherValue\u201d]]<\/code><\/p>
window.parent.document<\/code>\u00a0but it violates CORS policy.
Any help will be Appreciated.
Thanks<\/p>","url":"\/apps-and-marketplace-integrations-11358\/accessing-html-element-in-new-ticket-background-app-32332?postid=80506#post80506","creationDate":"2023-07-19T17:31:43+0000","relativeCreationDate":"19 days ago"},"numberOfViews":10,"contentType":"question","featuredImage":"","publicLabel":"","category":{"url":"\/using-freshdesk-11320","categoryId":11320,"title":"Using Freshdesk","metaRobots":"index, follow","type":0},"lastPostId":"80506"},"isActivityPage":null,"showUnsubscribeBtn":null,"attachmentCdn":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/","isGuest":true,"csrfToken":"c4cb3e19ebbda682d76d0e2a8449fbc7f5180ee2","hideCategoryMetadata":false,"phrases":{"Forum":{"thread.unsubscribe":"Unsubscribe","vraag":"Question","beantwoord":"Solved","topic.list.metadata.asked.in":"asked in","topic.list.metadata.published.in":"published in","topic.list.metadata.shared.in":"shared in","topic.list.metadata.posted.in":"posted in"}}}">
problem solved with supports<\/pre>","url":"\/apps-and-marketplace-integrations-11358\/cant-delete-application-freshdesk-30888?postid=78932#post78932","creationDate":"2023-06-14T11:43:30+0000","relativeCreationDate":"1 month ago"},"lastReply":{"id":78932,"author":{"id":43590,"url":"\/members\/bomoxygen-43590","name":"BomOxygen","avatar":"","userTitle":"","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":"
problem solved with supports<\/pre>","url":"\/apps-and-marketplace-integrations-11358\/cant-delete-application-freshdesk-30888?postid=78932#post78932","creationDate":"2023-06-14T11:43:30+0000","relativeCreationDate":"1 month ago"},"numberOfUnreadReplies":0,"numberOfReplies":1,"numberOfLikes":0,"relevantPost":{"id":77589,"author":{"id":43590,"url":"\/members\/bomoxygen-43590","name":"BomOxygen","avatar":"","userTitle":"","rank":{"isBold":true,"isItalic":false,"isUnderline":false,"avatarIcon":"c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/c4fdcdb1-15eb-44af-849c-fcb8ae67a397_thumb.png","name":"Apprentice"},"userLevel":0},"content":"
In my case, I\u2019m trying to create and save contacts after a conversation is closed in my app.<\/p>","url":"\/apps-and-marketplace-integrations-11358\/integration-with-nodejs-30870?postid=77552#post77552","creationDate":"2023-05-10T14:39:24+0000","relativeCreationDate":"2 months ago"},"isTopicUnread":true,"privateId":5622,"id":30870,"type":"post","hasCurrentUserLiked":false,"isSticky":false,"features":[{"id":"isQuestion","label":"vraag"}],"forum":{"id":11358,"isIdeation":false,"url":"\/apps-and-marketplace-integrations-11358","title":"Apps and Marketplace Integrations","description":"Using Freshdesk"},"url":"\/apps-and-marketplace-integrations-11358\/integration-with-nodejs-30870","title":"Integration with nodejs","lastPost":{"id":77566,"author":{"id":38588,"url":"\/members\/barun-poddar-38588","name":"barun.poddar","avatar":"","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"icon":"3e164ae1-0fbf-444b-9d4f-3c98888e1158.png","iconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/3e164ae1-0fbf-444b-9d4f-3c98888e1158.png","avatarIcon":"01224d04-fc75-4c7d-bbf1-c7cb6591a3b4_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/01224d04-fc75-4c7d-bbf1-c7cb6591a3b4_thumb.png","name":"Community Manager"},"userLevel":3},"content":"
\u00a0<\/p>
Barun<\/p>","url":"\/apps-and-marketplace-integrations-11358\/integration-with-nodejs-30870?postid=77566#post77566","creationDate":"2023-05-10T19:01:03+0000","relativeCreationDate":"2 months ago"},"lastReply":{"id":77566,"author":{"id":38588,"url":"\/members\/barun-poddar-38588","name":"barun.poddar","avatar":"","userTitle":"Community Manager","rank":{"isBold":false,"isItalic":false,"isUnderline":false,"icon":"3e164ae1-0fbf-444b-9d4f-3c98888e1158.png","iconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/3e164ae1-0fbf-444b-9d4f-3c98888e1158.png","avatarIcon":"01224d04-fc75-4c7d-bbf1-c7cb6591a3b4_thumb.png","avatarIconUrl":"https:\/\/uploads-us-west-2.insided.com\/freshworks-en\/attachment\/01224d04-fc75-4c7d-bbf1-c7cb6591a3b4_thumb.png","name":"Community Manager"},"userLevel":3},"content":"
I recently configured the trail account \u201cInstagram Direct\u201d into fresh-desk, but I will be grateful if anyone can share his\/her experience for the same.\u00a0<\/p>
Welcome to Freshworks Community :)
\u00a0<\/p>Join the Community
Sign in to the Community
Social Login
Login for Freshworks Employees
Login with LinkedIn
Scanning file for viruses.
This file cannot be downloaded
Functional","cookiepolicy.modal.level2":"Normal
Functional + analytics","cookiepolicy.modal.level3":"Complete
Functional + analytics + social media + embedded videos"}}}">