AutoContacts Group field

Discussion in 'AutoApps' started by jfeldredge, Jul 10, 2019.

  1. jfeldredge

    jfeldredge New Member

    Joined:
    Jul 10, 2019
    Messages:
    7
    Likes Received:
    0
    What comtact field does the Group field (used in filtering, and returned in %acgroups() correspond to? It does not bring back the contents of the Contact Label field.
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    What action are you using exactly?
     
  3. jfeldredge

    jfeldredge New Member

    Joined:
    Jul 10, 2019
    Messages:
    7
    Likes Received:
    0
    I am using the Query 2.0 function of AutoContacts, and one of the fields I am telling it to return is the group. Android 8.0.0 does not have a contact field named Group, but it does have a field named Label, which serves the same purpose.

    Sent from my XT1710-02 using Tapatalk
     
  4. jfeldredge

    jfeldredge New Member

    Joined:
    Jul 10, 2019
    Messages:
    7
    Likes Received:
    0
    Since my previous reply didn't go through, I will reply again. I am searching using Query 2.0, with the email address as the search criterion. I am telling Query to retrieve the Name and Group fields. Name is populated, meaning that it found the contact, but the %acgroup_label() is not populated. I am running Android 8.0.0. The contacts editing dialog has a field named Label, but not one named Group.

    Sent from my XT1710-02 using Tapatalk
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you please export your task's description (not xml) so I can take a look? Long-click the task in Tasker->export description Thanks in advance
     
  6. jfeldredge

    jfeldredge New Member

    Joined:
    Jul 10, 2019
    Messages:
    7
    Likes Received:
    0
    Contacts Test (11)
    A1: AutoContacts Query 2.0 [ Configuration:Email Addresses: support@joaoapps.com
    Sort Direction: Ascending
    Fields to Get: Id,Name,Email Address,Email Address Type,Group Label
    Joiner: =:= Timeout (Seconds):60 Continue Task After Error:On ]
    A2: Flash [ Text:%acname()|%acemail()|%acgroup_label() Long:Off ]

    The name and email is fetched, but not the group.

    Oh, by the way, the email address query is case-sensitive. You might want to make it ignore case, or have this as an option.

    Sent from my XT1710-02 using Tapatalk
     
  7. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    Can you try just fetching the id, name and group and see if that works?
     
  8. jfeldredge

    jfeldredge New Member

    Joined:
    Jul 10, 2019
    Messages:
    7
    Likes Received:
    0
    This fetches the group ID, in the group label variable, but not the actual group label


    Contacts Test (11)
    A1: AutoContacts Query 2.0 [ Configuration:Names: Joaoapps
    Sort Direction: Ascending
    Fields to Get: Id,Name,Group Label
    Joiner: =:= Timeout (Seconds):60 Continue Task After Error:On ]
    A2: Flash [ Text:%acname()|%acemail()|%acgroup_label() Long:Off ]


    Sent from my XT1710-02 using Tapatalk
     
  9. jfeldredge

    jfeldredge New Member

    Joined:
    Jul 10, 2019
    Messages:
    7
    Likes Received:
    0
    According to what Joao told me by email, AutoContacts does not provide a way to find out the name of the groups a contact belongs to. The %acgroups_label array returns only numeric group IDs, instead of the actual labels.

    Sent from my XT1710-02 using Tapatalk
     
  10. Steve Waring

    Steve Waring New Member

    Joined:
    May 3, 2020
    Messages:
    2
    Likes Received:
    0
    I thought this might explain why if you put a filter on the group label nothing is returned. So I found out the group label I wanted (it was 13) and tried filtering on that. Still nothing came back. The work round I have is to get all the contact entries and loop through them picking out those with group 13. It's a shame the filter for this does not work.
     
: Contacts, Groups

Share This Page