I've created a custom table linked to a company and applied the logic described here : https://community.sagecrm.com/partner_community/b/hints_tips_and_tricks/archive/2010/06/08/how-to-create-a-secondary-entity-for-a-new-custom-primary-entity.aspx#pi10465=2
to get a simple edit screen to add new entries. For the most part this all works well, but I've run into a persistent issue with the redirects upon saving on the Edit page and the Add page.
I used
Response.Redirect(CRM.URL( "company/companypreferenceslist.asp" )+ "&T=company&comp_companyid=" +intRecordId); |
but the resulting url changes the context to teams for some reason. If I then manually change the url key0=5 back to key0=1 as it was up until the save button was clicked, I get the proper header and tabs. I just can't figure out why this changes to key0=5 in the first place.
This is happening in CRM 2017 R2.
Any ideas of what I can do to preserve the company context here?