• Chris Minotti 16
  • NEWBIE
  • 0 Points
  • Member since 2020

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello,

We have some custom code that is used to create a case that works on standard apps but breaks when it is used with an app that has a Console view.

When attempting to save our record from this custom window, an error appears:

'No access to field ws. Either the field was removed from the entity or access to this field was removed.'

'ws' is not a field on our object, and I think that error message is just the result of bad URL parsing. 

We have an Apex function RequestAccount() that generates the URL, and this URL needs to be updated to work with Lightning Console apps, but we are having difficulty finding the instructions on how to do so for our case.

This is the current way we currently prepend the URL string:

String urlString = '/one/one.app#/n/RecordCreatePage?';

According to this article (https://help.salesforce.com/articleView?id=release-notes.rn_general_new_url_format_lex.htm&type=5&release=214) the one.app segment needs to be adjusted to something with "lightning", but for our particular case the syntax is not clear.

Can anyone provide assistance on the change we need to make to fix this operation on console apps?

Thanks
Chris Minotti
Hello,

We have some custom code that is used to create a case that works on standard apps but breaks when it is used with an app that has a Console view.

When attempting to save our record from this custom window, an error appears:

'No access to field ws. Either the field was removed from the entity or access to this field was removed.'

'ws' is not a field on our object, and I think that error message is just the result of bad URL parsing. 

We have an Apex function RequestAccount() that generates the URL, and this URL needs to be updated to work with Lightning Console apps, but we are having difficulty finding the instructions on how to do so for our case.

This is the current way we currently prepend the URL string:

String urlString = '/one/one.app#/n/RecordCreatePage?';

According to this article (https://help.salesforce.com/articleView?id=release-notes.rn_general_new_url_format_lex.htm&type=5&release=214) the one.app segment needs to be adjusted to something with "lightning", but for our particular case the syntax is not clear.

Can anyone provide assistance on the change we need to make to fix this operation on console apps?

Thanks
Chris Minotti