amtrack / sfdx-browserforce-plugin

sfdx plugin for browser automation
MIT License
109 stars 37 forks source link

Automate Granting "Service Presence Status Access" (Omni-Channel) #564

Open ruslan-kurchenko opened 1 year ago

ruslan-kurchenko commented 1 year ago

By default, Salesforce does not provide an ability to deploy access entries and in scratch, org users do not have access to Presence Statuses. The only one available is "Offline". It blocks running standard testing and running e2e tests as a real service agent by accepting cases, etc.

Idea: https://ideas.salesforce.com/s/idea/a0B8W00000Gdq3UUAR/add-service-presence-statuses-access-to-metadata-api

As mentioned in the DX@Scale Slack thread, it is worth adding this automation to Browserforce - https://dxatscale.slack.com/archives/CN9N54GF5/p1684482930346419

amtrack commented 1 year ago

@ruslan-kurchenko Sounds good! I don't have much experience with Omni Channel. But from what you and others have described it really looks like a Metadata Gap and therefore it's a perfect fit for sfdx-browserforce-plugin.

Do you want to create a PR yourself?

If you don't want to create a PR, I can do it. Your script looks good, so I don't think the implementation itself will be complicated. The thing that will require some effort is to develop the E2E tests for it.

What would be a good test case and what are the steps to prepare a Scratch Org for testing?

ruslan-kurchenko commented 1 year ago

Yes, I will contribute. It might take a bit of time, I need to get better knowledge about the plugin, but I got the main concept.

amtrack commented 1 year ago

Wonderful! Let me know if you have any questions...