Get Group Details from Person or Group field using REST API?

Try using this:

_api/web/lists/getbytitle('listname')/items(100)?$select=Initiator/EMail,RAReviewers/EMail&$expand=Initiator,RAReviewers

Above is working fine for me in case of person or group.

Example:

/_api/web/lists/getbytitle('TestList')/items(1)?$select=TestPersonField/Title,TestPersonField/EMail&$expand=TestPersonField

Output: Below is part of response returned from above API call

<entry>
    <content type="application/xml">
        <m:properties>
            <d:Title>Ganesh Sanap</d:Title>
            <d:EMail>gsanap@tenant.onmicrosoft.com</d:EMail>
        </m:properties>
    </content>
</entry>
<entry>
    <content type="application/xml">
        <m:properties>
            <d:Title>SPConnect Members</d:Title>
            <d:EMail>SPConnect@tenant.onmicrosoft.com</d:EMail>
        </m:properties>
    </content>
</entry>

Where SPConnect Members is a Microsoft 365 group name.

Note: This will not work for SharePoint groups as they don’t have Email property.

sql server – A fatal PeopleCode SQL error occurred. Please consult your system log for details

sql server – A fatal PeopleCode SQL error occurred. Please consult your system log for details – Database Administrators Stack Exchange

Android Studio | Recompile with -Xlint:deprecation for details pero sin error aparente

Estoy haciendo un reproductor de musica de un tutorial que encontre en github y lo segui paso a paso sin irme a otros lados a hacer o deshacer y en realidad no me marca ningun error o mensaje del porque estoy mal mas aparte del mensaje al ejectur mi app donde al instalarla en mi telefono entra y se sale rapidamente dejando de responder, no logro percibir la libreria obsoleta o el que parte de codigo esta aparentemente bien pero mal en el fondo:

Note: C:UsersHPAndroidStudioProjectsMusicPlayerappsrcmainjavacomexamplemusicplayerMusicService.java uses or overrides a deprecated API. Recompile with -Xlint:deprecation for details.

Aca esta mi codigo para que me puedan proporcionar ayuda:


import java.util.ArrayList;
import java.util.Random;

import android.app.Notification;
import android.app.PendingIntent;
import android.app.Service;
import android.content.ContentUris;
import android.content.Intent;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Binder;
import android.os.IBinder;
import android.os.PowerManager;
import android.util.Log;

public class MusicService extends Service implements
        MediaPlayer.OnPreparedListener, MediaPlayer.OnErrorListener,
        MediaPlayer.OnCompletionListener {
    //media player
    private MediaPlayer player;
    //song list
    private ArrayList<Song> songs;
    //current position
    private int songPosn;
    //binder
    private final IBinder musicBind = new MusicBinder();
    //title of current song
    private String songTitle="";
    //notification id
    private static final int NOTIFY_ID=1;
    //shuffle flag and random
    private boolean shuffle=false;
    private Random rand;

    public void onCreate(){
        //create the service
        super.onCreate();
        //initialize position
        songPosn=0;
        //random
        rand=new Random();
        //create player
        player = new MediaPlayer();
        //initialize
        initMusicPlayer();
    }

    public void initMusicPlayer(){
        //set player properties
        player.setWakeMode(getApplicationContext(),
                PowerManager.PARTIAL_WAKE_LOCK);
        player.setAudioStreamType(AudioManager.STREAM_MUSIC);
        //set listeners
        player.setOnPreparedListener(this);
        player.setOnCompletionListener(this);
        player.setOnErrorListener(this);
    }

    //pass song list
    public void setList(ArrayList<Song> theSongs){

        songs=theSongs;
    }

    //binder
    public class MusicBinder extends Binder {
        MusicService getService() {

            return MusicService.this;
        }
    }

    //activity will bind to service

    public IBinder onBind(Intent intent) {
        return musicBind;
    }

    //release resources when unbind

    public boolean onUnbind(Intent intent){
        player.stop();
        player.release();
        return false;
    }

    //play a song
    public void playSong(){
        //play
        player.reset();
        //get song
        Song playSong = songs.get(songPosn);
        //get title
        songTitle=playSong.getTitle();
        //get id
        long currSong = playSong.getID();
        //set uri
        Uri trackUri = ContentUris.withAppendedId(
                android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,
                currSong);
        //set the data source
        try{
            player.setDataSource(getApplicationContext(), trackUri);
        }
        catch(Exception e){
            Log.e("MUSIC SERVICE", "Error setting data source", e);
        }
        player.prepareAsync();
    }

    //set the song
    public void setSong(int songIndex){

        songPosn=songIndex;
    }

    public void onCompletion(MediaPlayer mp) {
        //check if playback has reached the end of a track
        if(player.getCurrentPosition()>0){
            mp.reset();
            playNext();
        }
    }

    public boolean onError(MediaPlayer mp, int what, int extra) {
        Log.v("MUSIC PLAYER", "Playback Error");
        mp.reset();
        return false;
    }

    @Override
    public void onPrepared(MediaPlayer mp) {
        //start playback
        mp.start();
        //notification
        Intent notIntent = new Intent(this, MainActivity.class);
        notIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
        PendingIntent pendInt = PendingIntent.getActivity(this, 0,
                notIntent, PendingIntent.FLAG_UPDATE_CURRENT);

        Notification.Builder builder = new Notification.Builder(this);

        builder.setContentIntent(pendInt)
                .setSmallIcon(R.drawable.play)
                .setTicker(songTitle)
                .setOngoing(true)
                .setContentTitle("Playing")
                .setContentText(songTitle);
        Notification not = builder.build();
        startForeground(NOTIFY_ID, not);
    }

    //playback methods
    public int getPosn(){

        return player.getCurrentPosition();
    }

    public int getDur(){

        return player.getDuration();
    }

    public boolean isPng(){

        return player.isPlaying();
    }

    public void pausePlayer(){

        player.pause();
    }

    public void seek(int posn){

        player.seekTo(posn);
    }

    public void go(){

        player.start();
    }

    //skip to previous track
    public void playPrev(){
        songPosn--;
        if(songPosn<0) songPosn=songs.size()-1;
        playSong();
    }

    //skip to next
    public void playNext(){
        if(shuffle){
            int newSong = songPosn;
            while(newSong==songPosn){
                newSong=rand.nextInt(songs.size());
            }
            songPosn=newSong;
        }
        else{
            songPosn++;
            if(songPosn>=songs.size()) songPosn=0;
        }
        playSong();
    }

    public void onDestroy() {
        stopForeground(true);
    }

    //toggle shuffle
    public void setShuffle(){
        shuffle= !shuffle;
    }


}

En android studio no me marca nada, dice que estoy bien:

(!(Imagen de referencia de mi codigo)(1))(1)
  (1): https://i.stack.imgur.com/NFiEf.png


No se en que libreria este obsoleta o que parte del codigo este mal internamente 
ademas de que estuve revisando las librerias que importe desde el android studio y ninguna me aparece como que necesita ser actualizada o que es obsoleta

unity android build error: failed to update android sdk tool . see the console for details

when I build my android game in unity. an error occurs. it says: failed to update android sdk tool.see the console for details. and sometimes it says that I must download command line tools(latest). and I watched all the YouTube videos and opened all google links…and it didn’t work. and I downloaded android studio and downloaded the command line tools. and it didn’t work. I tried my best but I can’t find a soulution

plugins – Woocommerce: hide the order details if subscription cancelled

I am trying to figure out how to hide order details customer account with woocommerce subscription. I manage to find the hook

add_action( 'woocommerce_customer_changed_subscription_to_cancelled', 'hide_details_if_cancelled' );

    function hide_details_if_cancelled( $subscription ) {
      if ( 'cancelled' === $subscription->get_status() ) {
    }
}

i need to hide the following parts contain following classes on customer subscription page

.shop_table order_details

and

.wpr-add-product

Purpose to hide is, i am using plugin called self-service dashboard, which allow to switch and change quanitity of subscription. However even subscription is cancelled, buttons are still visible and allow customer to change quantity and item kg for ordered subscription product as well allow customer to add the product to subscription.

So its better to disable those options as well if subscription is cancelled to stop letting customer perform any action for specific subscription page.

magento 1.9 – Paymentsense double details entry

I have a Magento 1 site using paymentsense offsite payment.

When you go to the checkout you checkout as guest and enter all you normal details. Then when it comes to the payment info tab it asks for card details etc then you hit checkout and it takes you off to the paymentsense page where you have all the address stuff prefilled but it ask you for card detail again.

The issue is that this only happens for certain user’s other users don’t get the payment entry on the Magento site only on the paymentsense page.

Why are these two different issues scenarios happening randomly to different people.

It also does that if it happens to you that’s it… no matter what browser or computer on the WiFi you see it – Almost IP relate.

Tried it on my phone on WiFi didn’t see the double entry, tried again on 3g and it happens.

I have no other payment gateways setup.

Anyone else see this issue?

DreamProxies - Cheapest USA Elite Private Proxies 100 Private Proxies 200 Private Proxies 400 Private Proxies 1000 Private Proxies 2000 Private Proxies ExtraProxies.com - Buy Cheap Private Proxies Buy 50 Private Proxies Buy 100 Private Proxies Buy 200 Private Proxies Buy 500 Private Proxies Buy 1000 Private Proxies Buy 2000 Private Proxies ProxiesLive Proxies-free.com New Proxy Lists Every Day Proxies123