최근 검색


최근 검색 없음

Aaron Gulley's Avatar

Aaron Gulley

가입한 날짜: 2023년 7월 14일

·

마지막 활동: 2024년 9월 30일

팔로잉

0

팔로워

0

총 활동 수

10

투표

1

플랜 수

4

활동 개요

님의 최근 활동 Aaron Gulley

Aaron Gulley님이 에 게시물을 만듦

게시물 Developer - Zendesk Apps Framework (ZAF)

Hello, 

 

I'm in the pprocess of developing a zendesk aapplication. 

 

I am aware you can set iinstall requirements through the manifest file but i cant workout how you configure post install aapplication settings page? E.g a page which changes the app style or buttons based on what the user selects. 

 

Any ideas? 

 

Thank you 

2024년 9월 30일에 게시됨 · Aaron Gulley

0

팔로워

1

투표

1

댓글


Aaron Gulley님이 에 댓글을 입력함

댓글Custom data

Hello,

I have linked a custom object to agent user fields view using relationships. It displays perfectly fine on the zendesk but when pulled via the api from user fields. I get the following data

 

"user_fields": {
            "erp_company": "01J2VF9KVHK2SH1H76847E1D36"
            }

It should say ‘COMPANYXYZ’ in plain text rather than `01J2VF9KVHK2SH1H76847E1D36` what even is this? Is it encrypted? Have I linked them incorrectly?

댓글 보기 · 2024년 7월 16일에 게시됨 · Aaron Gulley

0

팔로워

0

투표 수

0

댓글


Aaron Gulley님이 에 게시물을 만듦

게시물 Developer - Zendesk Apps Framework (ZAF)

Hello,

I'm not sure if I'm losing my mind or just don't know how to code. Probably the latter.

I'm trying to use the ```secure:true``` but it doesn't seem to be working.

CODE: 

import React, { useState, useEffect } from 'react'
import zafClient from '../../../zafClient'

const CaseList = () => {
  const [caseData, setCaseData] = useState(null)
  const [isLoading, setIsLoading] = useState(true)

  useEffect(() => {
    const fetchData = async () => {
      try {
        const client = zafClient

        // Retrieve metadata using the client.metadata() method
        //const metadata = await client.metadata();
        //const token = metadata.settings.token; // Assuming the token is stored in the settings
       

        const options = {
          url: 'https://api.example.com/usage',
          headers: { "api-token": `{{settings.token}}` },
          secure: true,
          type: 'GET',
          contentType: 'application/json'
        }

        const response = await client.request(options)

        if (!response) {
          throw new Error('No response from the API')
        }

        setCaseData(response.data) // Ensure you're setting the correct part of the response
      } catch (error) {
        console.error('Error fetching case data:', error)
        // Log more error details if available
        if (error.response) {
          console.error('Error response:', error.response)
        }
      }
      setIsLoading(false)
    }

    fetchData()
  }, [])

  return (
   
      {isLoading ? (
       

Loading case data...

      ) : caseData ? (
       
              {/* Ensure these fields match the structure of your response data */}
             
  • Job Number: {caseData.JobNum}
  •          
  • Part Number: {caseData.PartNum}
  •          
  • Description: {caseData.Description}
  •           {/* Add other fields as needed */}
           
          ) : (
           

    No case data available.

          )}
       
      )
    }

    export default CaseList

    I'm just returning 



    What have I done wrong?

    2024년 2월 19일에 게시됨 · Aaron Gulley

    0

    팔로워

    2

    투표 수

    1

    댓글


    Aaron Gulley님이 에 게시물을 만듦

    게시물 Developer - Zendesk Apps Framework (ZAF)

    Hi Can anyone point me in the right direction. I am developing an app and hoping that will be able to put it on the market place at one point.

     

    What is the best method

     

    Create several custom fields using the post method on zendesk ticket fields api then using the GET method to find the custom field ids for usage in my app. I'm currently hard coding custom field ids to store information related to that ticket pulled from a third party api.

     

    Second option Post the information to a third party api database and call it each time the app launches? And primary field will be the ticket id. Also

     

    how the hell do you use install requirements? Fields that will be used in the code eg API keys for a given third party app. Etc etc

     

    Thank you and so sorry for all the questions. Aaron

    2023년 7월 20일에 편집됨 · Aaron Gulley

    0

    팔로워

    2

    투표 수

    0

    댓글


    Aaron Gulley님이 에 게시물을 만듦

    게시물 Developer - Zendesk Apps Framework (ZAF)

    Hi 

    I have just created a new using

    • zcli apps:new --scaffold=react
    • cd C:\Zendesk\epicor
    • zcli apps:server

    But I keep getting

    PS C:\Zendesk\epicor> zcli apps:server 
     »   Error: Invalid app path: C:\Zendesk\epicor

    What am I missing? I have not changed any of the files in the created directory..

    2023년 7월 14일에 게시됨 · Aaron Gulley

    0

    팔로워

    2

    투표 수

    1

    댓글