最近の検索


最近の検索はありません

Amy Hunt's Avatar

Amy Hunt

参加日2021年4月15日

·

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

フォロー中

0

フォロワー

0

合計アクティビティ

38

投票

6

受信登録

20

アクティビティの概要

さんの最近のアクティビティ Amy Hunt

Amy Huntさんが投稿を作成しました:

投稿 Developer - Zendesk APIs

Hi,

I am writing a script to update the URLs in the article body to include the lang_loc.

When I run the script it updates all the articles correctly. However if there is an article with 'review_status = in progress' it will update the published article and republish, putting the in progress work into revisions in it's past. 

Either I would like to be able to get the 'revision status' in the API somehow, so I can ignore them, or be able to update the published article keeping the in progress article there. 

Any ideas? 

Thanks,

Amy

Code:

endpoint = zendesk + '/api/v2/help_center/{locale}/articles.json'.format(locale=locale.lower())
## get the locale from locale var and insert it into {locale}
while endpoint:
# While the end point exists continue
response = requests.get(endpoint, auth=credentials)
## Get the data from each locale get
if response.status_code != 200:
print('Failed to retrieve articles with error {}'.format(response.status_code))
exit()
data = response.json()
#print(f'The end point: ' + endpoint)

for article in data['articles']:
print(article)
article_id = article['id']
if "/hc/articles/" in str(article['body']):
print(article['html_url'])
## If the article body contains a link without a locale
output_article = article['body'].replace('/hc/articles/', '/hc/'+locale+'/articles/')
## Replace the urls to include the current locale
put_url = f'https://mysite.zendesk.com/api/v2/help_center/articles/{article_id}/translations/{locale}.json'
put_data = {'translation': {'title': article['title'], 'body': output_article}}
put_response = requests.put(put_url, json=put_data, auth=credentials)
# Put the response back to the article replaced with the new urls
print(str(article['html_url']))

endpoint = data['next_page']
# Go to the next page of articles

編集日時:2022年9月09日 · Amy Hunt

1

フォロワー

3

投票

0

コメント


Amy Huntさんがコメントを作成しました:

コミュニティのコメント Q&A - Help center and community

Hi @...

I have an issue with our related article, but they just aren't appearing at all. Is there a bug as the moment with this?

I can get the Recent articles and articles in this section to appear, but related articles will not. 

Can you help with this issue please?

Thanks in advance,

Amy

Edit: I have a sandbox account and a production. I have just found it works in prod but not sandbox (settings are the same and correct). Could this be because in our sandbox site we haven't built up enough 'confidence' between articles?

コメントを表示 · 編集日時:2021年12月03日 · Amy Hunt

0

フォロワー

0

投票

0

コメント


Amy Huntさんがコメントを作成しました:

コミュニティのコメント Q&A - Help center and community

Hi Guiseppe,

Thanks for the response, I ended up building something similar to the solution in 'https://support.zendesk.com/hc/en-us/community/posts/4409515207578'. I was hoping there was be an official object I could use, but if not seems I have the right way to go about it anyway.

Thanks for your help

Amy

コメントを表示 · 投稿日時:2021年11月16日 · Amy Hunt

0

フォロワー

0

投票

0

コメント


Amy Huntさんがコメントを作成しました:

コミュニティのコメント Feedback - Community Forums (Gather)

+1  for this feature, would be incredibly useful and actually make the community far more easy to navigate and therefore more users will engage.  

コメントを表示 · 投稿日時:2021年11月12日 · Amy Hunt

0

フォロワー

1

投票

0

コメント


Amy Huntさんが投稿を作成しました:

投稿 Q&A - Help center and community

Hi,

I would like the ability to show more than the 10 standard articles in this section. Is this possible? Preferably I would like to view them ALL on this page.

Any advice would help,

Thanks,

Amy

編集日時:2021年11月10日 · Amy Hunt

0

フォロワー

4

投票

2

コメント


Amy Huntさんがコメントを作成しました:

コミュニティのコメント Feedback - Help Center (Guide)

+1 for this feature. And if a workaround is available, I would love to hear it

コメントを表示 · 投稿日時:2021年11月08日 · Amy Hunt

0

フォロワー

0

投票

0

コメント


Amy Huntさんが投稿を作成しました:

投稿 Feedback - Help Center (Guide)

Hi,

It would be very useful to be able to separate assets into folders. We have a lot of assets in our theme, so being able to create at least 1 level of folder to keep our theme tidier and easier to understand would be very useful.

Thanks,

Amy

投稿日時:2021年11月08日 · Amy Hunt

2

フォロワー

3

投票

1

コメント


Amy Huntさんがコメントを作成しました:

コミュニティのコメント Feedback - Ticketing system (Support)

Yes, please! +1

Such a useful feature for customizing the webwidget

コメントを表示 · 投稿日時:2020年6月09日 · Amy Hunt

0

フォロワー

1

投票

0

コメント


Amy Huntさんがコメントを作成しました:

コミュニティのコメント Q&A - Chat, messaging, and widgets

@... 

Yes, I missed that I had to put it after the widget. Thanks!

The bit that was breaking it for me is that in your code you have forgotten to close the function. Just in case any one else needs this code :)


Thank you so much on helping me fix days of torment! Much appreciated.

 

コメントを表示 · 投稿日時:2020年4月29日 · Amy Hunt

0

フォロワー

0

投票

0

コメント


Amy Huntさんがコメントを作成しました:

コミュニティのコメント Q&A - Chat, messaging, and widgets

@... - Thanks. Unfortunately I can't get it to work.

I am putting in the script.js file  and changed the below line to reflect the classes in my helpdesk

#Embed > div > div > div > form > div > div.sc-cpmKsF.fvnioU > div:nth-child(1) { 

But it isn't hiding the fields. I don't think it's finding the fields to start with.

Any guidance? Thanks in advance

コメントを表示 · 投稿日時:2020年4月28日 · Amy Hunt

0

フォロワー

0

投票

0

コメント