@wppconnect-team/wppconnect - v1.38.0
    Preparing search index...

    Function getABPropsMap

    • Get all A/B test property configurations as a Map The map is keyed by the config code for easier lookup

      Returns Map<string, ABPropConfig>

      Map of config code to A/B property configuration with names

      // Get all A/B props as a Map
      const abPropsMap = WPP.conn.getABPropsMap();

      // Check a specific config by code
      const specificProp = abPropsMap.get('12345');
      if (specificProp) {
      console.log('Name:', specificProp.name);
      console.log('Value:', specificProp.configValue);
      }

      // Convert to object for easy viewing
      const result = {};
      abPropsMap.forEach((value, key) => {
      result[value.name || key] = value.configValue;
      });
      console.table(result);