最近の検索


最近の検索はありません

Gaby Bitar's Avatar

Gaby Bitar

参加日2022年7月10日

·

前回のアクティビティ2024年11月03日

フォロー中

0

フォロワー

0

合計アクティビティ

23

投票

0

受信登録

6

アクティビティの概要

さんの最近のアクティビティ Gaby Bitar

Gaby Bitarさんがコメントを作成しました:

コミュニティのコメント Discussion - Tips and best practices from the community

This doesn't work for me, I am getting “'body' does not exist” error. Did this change with Templating API v4?

コメントを表示 · 投稿日時:2024年11月03日 · Gaby Bitar

0

フォロワー

1

投票

0

コメント


Gaby Bitarさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk APIs

Hi Raphaël Péguet - Officers.fr,

Yes I did, I used the Users/me api to grab the current users ID number and add that to a variable - https://developer.zendesk.com/api-reference/ticketing/users/users/#show-self

Then I used that userID to call the user segments api and list the current users User Segments.

/api/v2/help_center/users/{user_id}/user_segments.json

(https://developer.zendesk.com/api-reference/help_center/help-center-api/user_segments/#list-user-segments)

I hope this helps!

コメントを表示 · 投稿日時:2023年2月15日 · Gaby Bitar

0

フォロワー

0

投票

0

コメント


Gaby Bitarさんが投稿を作成しました:

投稿 Q&A - Help center and community

I would love to know if there is a way to hide specific articles from Search results and instant search either by using tags or anything else.

投稿日時:2023年2月10日 · Gaby Bitar

3

フォロワー

5

投票

2

コメント


Gaby Bitarさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk APIs

Ahmed Zaid Thank you, it worked!

コメントを表示 · 投稿日時:2023年1月09日 · Gaby Bitar

0

フォロワー

0

投票

0

コメント


Gaby Bitarさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk APIs

Ahmed Zaid is there no way to determine what User Segments an end-user belongs to?

コメントを表示 · 投稿日時:2023年1月07日 · Gaby Bitar

0

フォロワー

0

投票

0

コメント


Gaby Bitarさんが投稿を作成しました:

投稿 Developer - Zendesk APIs

I am trying to pull which user segment the current logged in end user belongs to. I am currently using the "GET /api/v2/users/me" to retrieve the current users ID and using that ID to try to pull the user segments. (Code below, it's working for admins but not for end users, I also masked the email and tokenID for this forum purposes)

 

$.getJSON('/api/v2/users/me', function(data) {
    console.log("got data", data);
      getUserSegment(data.user.id);
});


function getUserSegment(userID){  
  // fetch UserSegment API.  
  $.ajax
  ({
  url: '/api/v2/help_center/users/'+userID+'/user_segments.json',
  headers: {
    "Authorization": "Basic email-address/token:tokenID"
  },
  beforeSend: function (xhr){
xhr.setRequestHeader('Authorization', "Basic "+ btoa("email-address/token:tokenID")); 
    },
  secure: true,
  type: 'GET',
  contentType: "application/json",
  dateType: 'json',
  success: function(data){
    data.user_segments.forEach(function(element, index) {
          alert(element.name);
        });
    }
});
  }

 

Please help, not sure why it's not working.

編集日時:2023年1月06日 · Gaby Bitar

0

フォロワー

3

投票

5

コメント


Gaby Bitarさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)

Eric Nelson I don't need to suspend users anymore and tried it with updating the User's custom roles and that updates instantly. There must be something with the Suspension field that delays in updating but luckily I don't need that right now. Thank you so much for your help again!

コメントを表示 · 投稿日時:2022年7月20日 · Gaby Bitar

0

フォロワー

0

投票

0

コメント


Gaby Bitarさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)

Hey Eric Nelson , thank you so much for all of your help. Sorry for the late response was out of the office. This method worked great for me!

コメントを表示 · 投稿日時:2022年7月20日 · Gaby Bitar

0

フォロワー

0

投票

0

コメント


Gaby Bitarさんが投稿を作成しました:

投稿 Developer - Zendesk Apps Framework (ZAF)

Would love to be able to change an Agent's role-type to Light Agent. Is there any way to do this? or is there absolutely no way to do this?

Thank you.

投稿日時:2022年7月14日 · Gaby Bitar

0

フォロワー

3

投票

2

コメント


Gaby Bitarさんがコメントを作成しました:

コミュニティのコメント Developer - Zendesk Apps Framework (ZAF)

Eric Nelson I tried using this and I am still getting the same issue. As I do get a success popup notification saying the user was suspended, it doesn't update the API instantly, it updates after the app is refreshed.

コメントを表示 · 投稿日時:2022年7月14日 · Gaby Bitar

0

フォロワー

0

投票

0

コメント