Recent searches


No recent searches

Sending a ticket from Ticket list screen the custom fields configuration is ignored.



Posted Mar 16, 2022

Hello,

We have multiple integrations between our Mobile Apps and Zendesk via Zendesk SDK, while also using the Zendesk Guide Help Center. We found a problem using HelpCenterActivity in Android.

We set a RequestActivityConfig to add some custom fields to our tickets, but found that the next code works only when sending a ticket from "Help Center Articles list" screen and "Help Center Article Detail" screen, but  sending a ticket from "Ticket list" screen.

If the user navigate to the ticket list screen then this configuration is ignored.

val requestActivityConfig:

Configuration =
    RequestActivity.builder()
        .withCustomFields(
            listOf(
                CustomField(customFieldApp, context.getString(R.string.zendesk_app_name)),
                CustomField(customFieldZone, getSelectedZoneIdUseCase()),
                CustomField(customFieldMobileOs, "Android"),
                CustomField(customFieldDeviceModel, Build.MODEL),
                CustomField(customFieldAppVersion, context.packageManager.getPackageInfo(context.packageName, 0).versionName),
                CustomField(customFieldOsVersion, Build.VERSION.SDK_INT.toString())))
        .config()val categoryId = Long.parseLong(context.getString(R.string.zendesk_category_id))

    HelpCenterActivity.builder()
        .withArticlesForCategoryIds(categoryId)
        .show(context, requestActivityConfig)

Thanks and regards,

Fernando


0

2

2 comments

image avatar

Greg Katechis

Zendesk Developer Advocacy

Hi Fernando! Can you confirm that you don't have another request builder elsewhere that is being used instead of this one? That would be the most likely reason that I could see. 

0


Hi Greg Katechis we confirm that we do not have any other builder and we only use the .show() method on the HelpCenterActivity builder.

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post