Hi Team
we have a customisation in place where we wanted to land all the categories to a specific category only so how we can override this redirection.
Â
Â
Thank you in advance.
Best regards,
Hi Team
we have a customisation in place where we wanted to land all the categories to a specific category only so how we can override this redirection.
Â
Â
Thank you in advance.
Best regards,
Nevertheless, Sync History could not accept duplicate External or Internal IDs.Â
Hi
Thank you for the response, please find the details below:
We have a customization in place where are not syncing Root Category to BigC. In below example we are not syncing the Categories immediate under Company i.e. Test1, Teat2, Test3, Test4.
But the Categories under these root categories ( i.e. Test1, Teat2, Test3, Test4) we are syncing with the same structure to BigC.
Now, when we are clicking on the category external ID on Sync History, it redirects to blank page.
But when we open the same category on BigC, it open. And on comparing both landing urls there is a difference of /products/categories/159/edit (not correct) and products/categories/1/edit/159 (correct).
And due to this reason we are trying to find out a way using we can modify this redirection by updating correct url so it lands to the respective category.
Sample Code:
 public delegate void NavigateExternDelegate(IConnector connector, ISyncStatus status, ISyncDetail detail);
    ÂPXOverride()]
    public void NavigateExtern(IConnector connector, ISyncStatus status, ISyncDetail detail, NavigateExternDelegate baseMethod)
    {
      baseMethod(connector, status, detail);
    }
Sure, Thank youÂ
Hi
Did you get any solution on this or did your developers get a chance to review this post. If yes, could you please help me with this.
Thank you In advance.
Hi
If you want to edit the link to the external page, then you can override NavigateExtern of BCConnector graph, but by doing this you will be changing all the redirections from all entities used in the connector. There you should throw a PXRedirectToUrlException with the URL to be redirected.
Just a note, If you call the base method before your logic, then it might not work properly. Also, I suggest you to consider cases where the extern id from status doesn’t exist, as well as base URL.
One more info, unfortunately by design decision, we can’t customize the NavigateExtern from Sync History graph. So, that might explain why your NavigateExtern is never hit.
Hi
Thanks for your explanation, I will try as you suggested.
Hello
Thank you for you suggestion, The issue has been resolved, and everything is working as expected now.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.