Hi,
When there is a scheduling cycle, I want to automatically remove the dependency record without displaying the popup. I tried the following, the scheduling cycle popup did not show but the sync api was not invoked, then the dependency still visible in the page.
listeners: {
cycle: ({
schedulingIssue,
continueWithResolutionResult,
}: {
schedulingIssue: any;
continueWithResolutionResult: any;
}) => {
const resolutions = schedulingIssue.getResolutions();
const circularDependencies = schedulingIssue.getDependencies();
// use the 2nd resolution of suggested for inActivation
resolutions[1].resolve(circularDependencies[0]);
// I also tried resolutions[0].resolve(circularDependencies[0]), but did not work.
continueWithResolutionResult('Resume');
schedulingIssue.collapse();
},
}
Testable code: