misc helper updates

This commit is contained in:
2024-04-22 13:11:29 +01:00
parent 147299ba78
commit af2b7f2063
5 changed files with 21 additions and 2 deletions
+9
View File
@@ -29,6 +29,14 @@ export const getFormCollectionByID = (appealTypeID) => {
return collectionName[0];
};
export const getFormIDByLogicalName = (appealTypeLogicalName) => {
const collectionName = jsonpath(
"$..[?(@.LogicalName =='" + appealTypeLogicalName + "')]",
data
);
return collectionName[0];
};
export const getPickListLabel = (data, picklistType, picklistID) => {
const pickListData = jsonpath(
"$..[?(@.LogicalName=='" + picklistType + "')]",
@@ -63,6 +71,7 @@ export const getSearchDetails = (searchResultsObj) => {
//console.log(searchResultsObj);
let detailsArr = [];
searchResultsObj = searchResultsObj.value;
const detailsObj = searchResultsObj.map((searchDetail, index) => {
if (searchDetail.pinswg_appealcasetype == null) {